Borrar filtros
Borrar filtros

clear all output code

200 visualizaciones (últimos 30 días)
ga rec
ga rec el 12 de Ag. de 2019
Comentada: Duncan Carlsmith el 23 de Mayo de 2024
Is it possible in matlab live script to "clear all output" with a program code?
  12 comentarios
K.
K. el 10 de Nov. de 2020
Regarding Walter's comment, I think I found the post where someone was trying to use clc and fprintf to show textual progress updates. If anyone is interested, I have posted a different workaround for textual progress indication that works in the Live Editor. Essentially, you can use the '\b' (backspace) character to remove characters from textual output in the Live Editor.
Walter Roberson
Walter Roberson el 10 de Nov. de 2020
Yes, that is the one. Thanks, K.

Iniciar sesión para comentar.

Respuestas (2)

Heather Lai
Heather Lai el 18 de Oct. de 2020
I would also like to encourage this functionallity. When I write code which I would like to operate iteratively after a user input, it would be very helpful for the output to be programatically cleared.
  1 comentario
Chris Kloppers
Chris Kloppers el 22 de Oct. de 2020
I also need to have this functionality. Mainly for good housekeeping, but I can think of many reasons why I would need it. It will even help to clear the output only for the current section.

Iniciar sesión para comentar.


Sai Bhargav Avula
Sai Bhargav Avula el 20 de Ag. de 2019
Currently you cannot programmatically set the clear output in Live Editor. There are only two ways to do this. First, the one you mentioned and the other by right clicking anywhere in the script and selecting the Clear All Output option.
  19 comentarios
Jack
Jack el 9 de Mayo de 2024
I would also like this capability. Right clicking and picking Clear All Output is not a good solution. A code sequence similar to "clc" but for the live editor output window would be great. You could then assign it to the quick access toolbar for fast execution.
Thanks
Duncan Carlsmith
Duncan Carlsmith el 23 de Mayo de 2024
Me too!

Iniciar sesión para comentar.

Categorías

Más información sobre Adding custom doc en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by