フィルターのクリア

Are there "pause on error" and "run and time" options when running a live script

38 ビュー (過去 30 日間)
clauper
clauper 2021 年 12 月 3 日
コメント済み: CAME18 2022 年 4 月 7 日
When running a *.m file, I have the option to "pause on error" and to "run and time". I cannot find this options when running *.mlx files. Do this options exist, or is there a neat workaround that reproduces these options?

採用された回答

Akash Singh
Akash Singh 2021 年 12 月 7 日
1. Pause on error
This option does not exist in live editor (.mlx). Please refer to the section 'Error Breakpoints' in the link below for more information.
2. Run and time
This does exist for a .mlx file. You can click 'Run and Time' from code tab and open profiler.
One the profiler opens, you can just enter your code/function name/file name and click on 'Run and Time' to execute.
For example, if you have a file named sampleLoop.mlx with code -
for i = 1:10
disp(i)
end
All you have to do is enter 'sampleLoop' in the profiler and say 'Run and Time'
For more information refer to link below -
  1 件のコメント
CAME18
CAME18 2022 年 4 月 7 日
Good to know. Any plans on including Pause on Errors to live scripts on future releases?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by