how to convert if statements into arrays with 4 cordinates

1 次查看(过去 30 天)
i have 4 cordinates consisting the ROI but right now its in if statement but i want to change it to array and how to do that?
  2 个评论
Geoff Hayes
Geoff Hayes 2021-5-21
Praneeti - you may need to show your code and explain how you would like to change the if statement to an array.
Praneeti Mitra
Praneeti Mitra 2021-5-21
编辑:Geoff Hayes 2021-5-21
if pos(1)<= 0.1589+0.06+0.1 && pos(1)>=0.1589+0.06 && pos(2)<=0.4120+0.12+.1 && pos(2)>=0.4120+0.12
% v1Fcn;
% fprintf(fid_click,'%.2f %.2f %d %s %s \n',264,451,1,datestr(now),'F101');
te = toc(t_start_exp);
fprintf(fid_click,'%d %.6f %.2f %.2f %d %s %.2f\n',floor(te),(te-floor(te)),264,451,1,'F101',0000);
tag_for_plot = 1;
%flag_text = 1;
else
these are the cordinates and i want it to be arranged in an array format i.e. this if statement . How to do that?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by