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

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?

 Risposta accettata

Make a section break of that lines of code.

1 Commento

Thanks, I still wish there was a "right click, clear this output" feature :)

Accedi per commentare.

Più risposte (1)

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 Commenti

I highly encourage implementing a command to programmatically clear all or a specified output in a live script.
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!

Accedi per commentare.

Categorie

Scopri di più su Live Scripts and Functions in Centro assistenza e File Exchange

Prodotti

Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by