how to convert if statements into arrays with 4 cordinates

1 visualización (últimos 30 días)
Praneeti Mitra
Praneeti Mitra el 20 de Mayo de 2021
Editada: Geoff Hayes el 21 de Mayo de 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 comentarios
Geoff Hayes
Geoff Hayes el 21 de Mayo de 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 el 21 de Mayo de 2021
Editada: Geoff Hayes el 21 de Mayo de 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?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Array Geometries and Analysis en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by