²é¿´: 849  |  »Ø¸´: 2
µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû

tonifcty

½ð³æ (³õÈëÎÄ̳)

[ÇóÖú] °ïæ°ÑÏÂÃæmatlab mÎļþд³Émathematica³ÌÐò

¾ÍÊÇÒ»¸ö¶ÔÓ¦µÄÕÒλÖõÄС³ÌÐò£¬µ«ÊDZ¾È˲»»ámathematica£¬ÇóÖ¸µ¼£¬¶àл
Ç°Ãæ¸³ÖµµÄ²¿·Ö¸ã³ÉÊäÈëÄÇÖÖ
function [Plate,Col,Row]=findplace(x,y,z)
%x:row,y:column,z:slide
%microarray column and row to microplate column and row
%set parameter

i=8;%microplate row number
j=10;%microplate column number
Ne=5; %Number of needle
length=4.5e4;%length of microarry
width=2.0e4;%width of microarry
stepx=250;
stepy=250;

%calculate
R=fix(width/stepy);
C=fix(length/stepx);% Total numbers of rows and columns of microarray
subcolumn=fix(C/Ne); % numbers of columns for each needle array

array=ceil(y/subcolumn);
time=R*(y-1-(array-1)*subcolumn)+x+(z-1)*R*subcolumn;% the number of spots
Plate=ceil(time/(i*j/Ne));

a=rem(time,(i*j/Ne));
if a==0
    Row=i;
    Col=array+1+Ne;
elseif a<=i
    Row=a;
    Col=array+1;
else
    Row=a-i;
    Col=array+1+Ne;
end
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

xzczd

ľ³æ (СÓÐÃûÆø)

Â¥Ö÷ÊÇ×Ô±©×ÔÆúÁËÂð¡­¡­Ñ¡ÁËÒ»¸öÍêÈ«Î޹صĴ𰸡£Èç¹ûÖ»ÊÇ·­ÒëÒ»ÏÂÊǺÜÈÝÒ׵ģº

findplace[x_, y_, z_] :=
With[{i = 8, j = 10, Ne = 5, length = 4.5 10^4, width = 2.0 10^4, stepx = 250, stepy = 250},
  Module[{r, c, a, subcolumn, array, time, plate, row, col},
   r = IntegerPart@(width/stepy);
   c = IntegerPart@(length/stepx);
   subcolumn = IntegerPart@(c/Ne);
   array = Ceiling@(y/subcolumn);
   time = r*(y - 1 - (array - 1)*subcolumn) + x + (z - 1)*r*subcolumn;
   plate = Ceiling@(time/(i*j/Ne));
   a = Mod[time, (i*j/Ne)];
   Which[ a == 0, row = i; col = array + 1 + Ne, a <= i, row = a;
    col = array + 1, True, row = a - i; col = array + 1 + Ne]; {plate, col, row}]]
Сľ³æMathematica°æ¿éÒѻ٣¨µ±È»Ô­±¾Ò²²»Õ¦µÄ£©£¬½¨Òé´ó¼ÒǰÍù°Ù¶ÈÌù°É»òStackexchange¡£
3Â¥2014-07-04 12:19:32
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
²é¿´È«²¿ 3 ¸ö»Ø´ð

ÂäÒ¶º³Çï·ç

гæ (СÓÐÃûÆø)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
tonifcty: ½ð±Ò+50, ¡ï¡ï¡ï¡ï¡ï×î¼Ñ´ð°¸ 2013-11-01 18:36:24
function [Plate,Col,Row]=findplace(x,y,z)
%x:row,y:column,z:slide
%microarray column and row to microplate column and row
%set parameter

i=8;%microplate row number
j=10;%microplate column number
Ne=5; %Number of needle
length=4.5e4;%length of microarry
width=2.0e4;%width of microarry
stepx=250;
stepy=250;

%calculate
R=fix(width/stepy);
C=fix(length/stepx);% Total numbers of rows and columns of microarray
subcolumn=fix(C/Ne); % numbers of columns for each needle array

array=ceil(y/subcolumn);
time=R*(y-1-(array-1)*subcolumn)+x+(z-1)*R*subcolumn;% the number of spots
Plate=ceil(time/(i*j/Ne));

a=rem(time,(i*j/Ne));
if a==0
    Row=i;
    Col=array+1+Ne;
elseif a<=i
    Row=a;
    Col=array+1;
else
    Row=a-i;
    Col=array+1+Ne;
end
2Â¥2013-11-01 18:28:46
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 0703»¯Ñ§µ÷¼Á£¬Çóµ¼Ê¦ÊÕ +7 ÌìÌìºÃÔËÀ´Éϰ¶° 2026-03-24 7/350 2026-03-24 20:26 by peike
[¿¼ÑÐ] ²ÄÁÏ¿¼Ñе÷¼ÁÉú +3 »ÆÁ»Ò»ÃÎǧÄê 2026-03-24 3/150 2026-03-24 17:00 by barlinike
[¿¼ÑÐ] ²ÄÁÏ292µ÷¼Á +8 éÙËÌ˼ÃÀÈË 2026-03-23 8/400 2026-03-24 16:33 by laoshidan
[¿¼ÑÐ] 307Çóµ÷¼Á +5 ³¬¼¶ÒÁ°º´óÍõ 2026-03-24 5/250 2026-03-24 15:46 by ÐÇ¿ÕÐÇÔÂ
[¿¼ÑÐ] 344Çóµ÷¼Á +3 desto 2026-03-24 3/150 2026-03-24 10:09 by ²«»÷518
[¿¼ÑÐ] Çó²ÄÁÏ£¬»·¾³×¨Òµµ÷¼Á +3 18567500178 2026-03-18 3/150 2026-03-23 23:50 by ÈÈÇéɳĮ
[¿¼ÑÐ] 327Çóµ÷¼Á +5 prayer13 2026-03-23 5/250 2026-03-23 22:11 by ÐÇ¿ÕÐÇÔÂ
[¿¼ÑÐ] Ò»Ö¾Ô¸ Î÷±±´óѧ £¬070300»¯Ñ§Ñ§Ë¶£¬×Ü·Ö287£¬Ë«·ÇÒ»±¾£¬Çóµ÷¼Á¡£ +3 ³¿»èÏßÓëÐǺ£ 2026-03-20 3/150 2026-03-22 16:00 by ColorlessPI
[¿¼ÑÐ] Çóµ÷¼ÁԺУÐÅÏ¢ +6 CX 330 2026-03-21 6/300 2026-03-22 15:25 by ÎÞи¿É»÷111
[¿¼ÑÐ] 285Çóµ÷¼Á +6 ytter 2026-03-22 6/300 2026-03-22 12:09 by ÐÇ¿ÕÐÇÔÂ
[¿¼ÑÐ] Ò»Ö¾Ô¸»ªÖпƼ¼´óѧ071000£¬Çóµ÷¼Á +4 ÑØ°¶Óб´¿Ç6 2026-03-21 4/200 2026-03-22 07:21 by ilovexiaobin
[¿¼ÑÐ] ¿¼Ñе÷¼Á +3 ºôºô£¿~+123456 2026-03-21 3/150 2026-03-21 20:04 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] Ò»Ö¾Ô¸¶«»ª´óѧ¿ØÖÆÑ§Ë¶320Çóµ÷¼Á +3 Grand777 2026-03-21 3/150 2026-03-21 19:23 by ¼òÖ®-
[¿¼ÑÐ] 0703»¯Ñ§µ÷¼Á +4 ÄÝÄÝninicgb 2026-03-21 4/200 2026-03-21 18:39 by ѧԱ8dgXkO
[¿¼ÑÐ] ²ÄÁÏѧ˶333Çóµ÷¼Á +3 ±±µÀÏï 2026-03-18 3/150 2026-03-21 18:17 by ѧԱ8dgXkO
[¿¼ÑÐ] 336Çóµ÷¼Á +5 rmc8866 2026-03-21 5/250 2026-03-21 17:24 by ѧԱ8dgXkO
[¿¼ÑÐ] 330Çóµ÷¼Á0854 +3 assdll 2026-03-21 3/150 2026-03-21 13:01 by ²«»÷518
[¿¼ÑÐ] 085601µ÷¼Á 358·Ö +3 zzzzggh 2026-03-20 4/200 2026-03-21 10:21 by luoyongfeng
[¿¼ÑÐ] ²ÄÁÏѧ˶297ÒѹýËÄÁù¼¶Çóµ÷¼ÁÍÆ¼ö +11 adaie 2026-03-19 11/550 2026-03-20 21:30 by laoshidan
[¿¼ÑÐ] 0817 »¯Ñ§¹¤³Ì 299·ÖÇóµ÷¼Á ÓпÆÑо­Àú ÓжþÇøÎÄÕ +22 rare12345 2026-03-18 22/1100 2026-03-20 20:39 by zhukairuo
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û