フィルターのクリア

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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by