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

71 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (1)

Jared MacDonald
Jared MacDonald el 22 de Mzo. de 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.
Jared
  2 comentarios
Nathaniel H Werner
Nathaniel H Werner el 2 de Ag. de 2022
I highly encourage implementing a command to programmatically clear all or a specified output in a live script.
Alessio Ulivi
Alessio Ulivi el 4 de Jul. de 2023
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!

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by