Filter löschen
Filter löschen

how to convert if statements into arrays with 4 cordinates

1 Ansicht (letzte 30 Tage)
Praneeti Mitra
Praneeti Mitra am 20 Mai 2021
Bearbeitet: Geoff Hayes am 21 Mai 2021
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 Kommentare
Geoff Hayes
Geoff Hayes am 21 Mai 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 am 21 Mai 2021
Bearbeitet: Geoff Hayes am 21 Mai 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?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by