How to clear a specific piece of output in a Live Script?

77 ビュー (過去 30 日間)
Joan Vazquez
Joan Vazquez 2020 年 6 月 29 日
コメント済み: Alessio Ulivi 2023 年 7 月 4 日
I know how to "Clear all output", but I just want to delete a few lines of code and their output.
Is that possible or do I need to run the whole live script again?

採用された回答

madhan ravi
madhan ravi 2020 年 6 月 29 日
Make a section break of that lines of code.
  1 件のコメント
Joan Vazquez
Joan Vazquez 2020 年 6 月 29 日
Thanks, I still wish there was a "right click, clear this output" feature :)

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

その他の回答 (1 件)

Jared MacDonald
Jared MacDonald 2021 年 3 月 22 日
Just to add, there is indeed a "Clear Output" right-click menu for outputs, in addition to "Clear All Output", which sounds like what you're looking for:
This doesn't remove the corresponding code.
Jared
  2 件のコメント
Nathaniel H Werner
Nathaniel H Werner 2022 年 8 月 2 日
I highly encourage implementing a command to programmatically clear all or a specified output in a live script.
Alessio Ulivi
Alessio Ulivi 2023 年 7 月 4 日
That's exactly what I would like to have. Because I have to open an image to interactively select a value, but then I don't want that image to remain as an output!

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

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by