when the program is running, is not entering in the loop
Afficher commentaires plus anciens
dcs1=hdt.DataCursors
pos = get(dcs1(1),'Position');
op1 = pos(1)
op2 = pos(2)
op=[op1 op2]
save d.mat op1 op2
while B<=0
B=a(op1,op2);
op2=op2+1;
end
op2=op2-1
Réponses (2)
Jan
le 19 Fév 2016
0 votes
Obviously the value of the variable B is greater than 0 initially. You did not show how this variable is defined, so the readers cannot guess this detail.
3 commentaires
supriya kadam
le 19 Fév 2016
Jan
le 19 Fév 2016
Maybe the image is black and white, but what is "B"?
supriya kadam
le 17 Mar 2016
Jos (10584)
le 19 Fév 2016
0 votes
Apparently B is larger then 0 ... Did you check?
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!