24小时热门版块排行榜    

查看: 806  |  回复: 2
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

tonifcty

金虫 (初入文坛)

[求助] 帮忙把下面matlab m文件写成mathematica程序

就是一个对应的找位置的小程序,但是本人不会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的回帖
相关版块跳转 我要订阅楼主 tonifcty 的主题更新
信息提示
请填处理意见