when the program is running, is not entering in the loop
이전 댓글 표시
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
답변 (2개)
Jan
2016년 2월 19일
0 개 추천
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
supriya kadam
2016년 2월 19일
Jan
2016년 2월 19일
Maybe the image is black and white, but what is "B"?
supriya kadam
2016년 3월 17일
Jos (10584)
2016년 2월 19일
0 개 추천
Apparently B is larger then 0 ... Did you check?
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!