²é¿´: 850  |  »Ø¸´: 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µÄ»ØÌû

ÂäÒ¶º³Çï·ç

гæ (СÓÐÃûÆø)

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

¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +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µÄ»ØÌû

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µÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ tonifcty µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 0856²ÄÁÏר˶353Çóµ÷¼Á +6 NIFFFfff 2026-03-20 6/300 2026-03-24 21:02 by helloÆßÆß
[¿¼ÑÐ] 0854AI CV·½ÏòÕÐÊÕµ÷¼Á +3 ÕÂСÓã567 2026-03-23 3/150 2026-03-24 20:25 by Íô£¡£¿£¡
[¿¼ÑÐ] 0854µç×ÓÐÅÏ¢Çóµ÷¼Á +6 ¦Á____ 2026-03-22 7/350 2026-03-24 19:46 by sunjie8888
[¿¼ÑÐ] 292Çóµ÷¼Á +4 ¶ì¶ì¶ì¶î¶î¶î¶î¶ 2026-03-24 4/200 2026-03-24 16:41 by peike
[¿¼ÑÐ] Ò»Ö¾Ô¸211 ³õÊÔ270·Ö Çóµ÷¼Á +5 ¹ÈÓêÉϰ¶ 2026-03-23 6/300 2026-03-24 16:32 by laoshidan
[¿¼ÑÐ] 300Çóµ÷¼Á£¬²ÄÁÏ¿ÆÑ§Ó¢Ò»Êý¶þ +5 leaflight 2026-03-24 5/250 2026-03-24 16:25 by laoshidan
[¿¼ÑÐ] 305·ÖÇóµ÷¼Á£¨Ê³Æ·¹¤³Ì£© +5 Sxy112 2026-03-21 7/350 2026-03-24 12:27 by 544594351
[¿¼ÑÐ] ²ÄÁÏרҵÇóµ÷¼Á +11 hanamiko 2026-03-18 11/550 2026-03-23 23:12 by peike
[¿¼ÑÐ] 291 Çóµ÷¼Á +4 »¯¹¤2026½ì±ÏÒµÉ 2026-03-21 5/250 2026-03-23 16:46 by »¯¹¤2026½ì±ÏÒµÉ
[¿¼ÑÐ] 070300£¬Ò»Ö¾Ô¸±±º½320Çóµ÷¼Á +3 Jerry0216 2026-03-22 5/250 2026-03-23 09:16 by ¡£¡£ÌÃÌÃ
[¿¼ÑÐ] 308Çóµ÷¼Á +3 īīĮ 2026-03-21 3/150 2026-03-22 16:54 by i_cooler
[¿¼ÑÐ] ѰÕÒµ÷¼Á +4 ¾óǿâ? 2026-03-21 4/200 2026-03-22 16:14 by ľÍÐζ¶
[¿¼ÑÐ] ²ÄÁÏÇóµ÷¼Á +5 @taotao 2026-03-21 5/250 2026-03-21 20:55 by lbsjt
[¿¼ÑÐ] 0703»¯Ñ§µ÷¼Á +4 ÄÝÄÝninicgb 2026-03-21 4/200 2026-03-21 18:39 by ѧԱ8dgXkO
[¿¼ÑÐ] 299Çóµ÷¼Á +5 shxchem 2026-03-20 7/350 2026-03-21 17:09 by ColorlessPI
[¿¼ÑÐ] Ò»Ö¾Ô¸Î÷ÄϽ»´ó£¬Çóµ÷¼Á +5 ²Ä»¯ÖðÃÎÈË 2026-03-18 5/250 2026-03-21 00:26 by JourneyLucky
[¿¼ÑÐ] 288Çóµ÷¼Á +16 ÓÚº£º£º£º£ 2026-03-19 16/800 2026-03-20 22:28 by JourneyLucky
[¿¼ÑÐ] 0856µ÷¼Á£¬ÊÇѧУ¾ÍÈ¥ +8 sllhht 2026-03-19 9/450 2026-03-20 14:25 by ÎÞи¿É»÷111
[¿¼ÑÐ] Ò»Ö¾Ô¸¸£´ó288Óлú»¯Ñ§£¬Çóµ÷¼Á +3 Сľ³æ200408204 2026-03-18 3/150 2026-03-19 13:31 by houyaoxu
[¿¼ÑÐ] ±¾¿ÆÖ£ÖÝ´óѧÎïÀíѧԺ£¬Ò»Ö¾Ô¸»ª¿Æ070200ѧ˶£¬346Çóµ÷¼Á +4 ÎÒ²»ÊÇÒ»¸ù´Ð 2026-03-18 4/200 2026-03-19 09:11 by ¸¡ÔÆ166
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û