How to use not equal in for loop

回答 (1 件)

James Tursa
James Tursa 2020 年 8 月 10 日
編集済み: James Tursa 2020 年 8 月 10 日

0 投票

You could use a while loop. E.g.,
t = 0;
while( t ~= 1 )
% code
% at some point, either set t=1 or break out of loop
end

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

質問済み:

2020 年 8 月 10 日

編集済み:

2020 年 8 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by