how to convert if statements into arrays with 4 cordinates

1 view (last 30 days)
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 Comments
Geoff Hayes
Geoff Hayes on 21 May 2021
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 on 21 May 2021
Edited: Geoff Hayes on 21 May 2021
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?

Sign in to comment.

Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!