Can you determine the number of times a while() statement has run before it finally ends?

I am creating a while function and need to determine the number of cycles it went through before finally coming to completion. Thanks for your help!

 採用された回答

Sai kasyap
Sai kasyap 2015 年 9 月 17 日
%num is number of times u execute loop
num =0;
while your condition
num = num+1;
end

その他の回答 (0 件)

カテゴリ

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

質問済み:

2015 年 9 月 17 日

コメント済み:

2015 年 9 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by