How to clear a specific piece of output in a Live Script?
77 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
その他の回答 (1 件)
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
2022 年 8 月 2 日
I highly encourage implementing a command to programmatically clear all or a specified output in a live script.
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 Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!