Break Points without a function
4 ビュー (過去 30 日間)
古いコメントを表示
Can you use break points to debug code that is not a function? I just want to see how a block of code that I wrote is behaving, even though the block is not a function file. If so, how do I use break points to do this?
0 件のコメント
採用された回答
per isakson
2014 年 8 月 9 日
編集済み: per isakson
2014 年 8 月 10 日
With R2013a it's simple, just set a breakpoint and click [Run]. On the other hand I would have answered: add the line
function dummy()
at the to of the file. That's the way I used to do it.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!