stop execution of code to check results
3 ビュー (過去 30 日間)
古いコメントを表示
Is there a way to stop code from executing so that results can be checked. For example something like
if i == 100000
Stop
end
I want to check the values of a parameter when the iteration is equal to 100,000.
How can I do that?
0 件のコメント
採用された回答
Star Strider
2021 年 9 月 11 日
編集済み: Star Strider
2021 年 9 月 11 日
I would just display it instead —
if i == 100000
fprintf('Parameter = %f at iteration %d\n', Parameter, i)
end
Of course, it is also possible to save these to a vector.
.
0 件のコメント
その他の回答 (2 件)
参考
カテゴリ
Help Center および File Exchange で Debugging and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!