필터 지우기
필터 지우기

While loops is not responding

조회 수: 2 (최근 30일)
Guy Nir
Guy Nir 2016년 9월 14일
댓글: Adam 2016년 9월 14일
I wrote the following while loop, but when the if statement is answered, nothing happens.
while 1
k=StartToe+1;
if PairsMat(PrF(end),k)<=3
OligoPaints{i,:}=strcat(ReverseComplement(Toes(PrF(end),:),1),MainCell{i,8},ReverseComplement(Toes(k,:),1));
PrR(q)=k;
q=q+1;
disp(k)
break
else
k=k+1;
if k==size(PairsMat,1)
errordlg('No matching toes')
break
end % if k==size(PairsMat,1)
end % if PairsMat(PrF(end),k)<=3
end % while 1
  댓글 수: 1
Adam
Adam 2016년 9월 14일
Have you stepped in using the debugger? Does it ever enter the code in the if statement?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by