Effacer les filtres
Effacer les filtres

how to convert if statements into arrays with 4 cordinates

1 vue (au cours des 30 derniers jours)
Praneeti Mitra
Praneeti Mitra le 20 Mai 2021
Modifié(e) : Geoff Hayes le 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 commentaires
Geoff Hayes
Geoff Hayes le 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 le 21 Mai 2021
Modifié(e) : Geoff Hayes le 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?

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by