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

56 views (last 30 days)
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?

Accepted Answer

madhan ravi
madhan ravi on 29 Jun 2020
Make a section break of that lines of code.
  1 Comment
Joan Vazquez
Joan Vazquez on 29 Jun 2020
Thanks, I still wish there was a "right click, clear this output" feature :)

Sign in to comment.

More Answers (1)

Jared MacDonald
Jared MacDonald on 22 Mar 2021
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.




Community Treasure Hunt

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

Start Hunting!