Quick question,
Whenever I run a livescript in MatLab it returns each iteration of a loop, each axis property of a graph, etc. This creates an annoyingly large amount of text in my output. I am updated to the most current version of Matlab and I have searched the settings, but I can't figure out how to turn it off. How can I fix this?
Thanks!

 採用された回答

madhan ravi
madhan ravi 2020 年 6 月 19 日

0 投票

Suppress the output by adding ; (semicolon) at the end of each line.

1 件のコメント

Camille Woicekowski
Camille Woicekowski 2020 年 6 月 19 日
Right, I completely forgot I'm supposed to use the semicolons in MatLab. Thank you!

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

その他の回答 (1 件)

Aditya Ingawale
Aditya Ingawale 2020 年 6 月 19 日

0 投票

You can divide your LiveScript into sections. Add section breaks and then evaluate each section individually.
For more help you can refer to this documentation: https://in.mathworks.com/help/matlab/matlab_prog/run-sections.html

3 件のコメント

Camille Woicekowski
Camille Woicekowski 2020 年 6 月 19 日
I do have my LiveScript divided into sections. But if I generate a plot or iterate through a list, it shows all properties or iterations of that section, which is what I'm trying to turn off
Walter Roberson
Walter Roberson 2020 年 6 月 19 日
Do you have semi-colons at the end of your lines?
Camille Woicekowski
Camille Woicekowski 2020 年 6 月 19 日
I did not. That was the problem. Thanks!

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by