clear all output code

417 次查看(过去 30 天)
ga rec
ga rec 2019-8-12
Is it possible in matlab live script to "clear all output" with a program code?
  12 个评论
K.
K. 2020-11-10
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 2020-11-10
Yes, that is the one. Thanks, K.

请先登录,再进行评论。

回答(2 个)

Heather Lai
Heather Lai 2020-10-18
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 个评论
Chris Kloppers
Chris Kloppers 2020-10-22
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.

请先登录,再进行评论。


Sai Bhargav Avula
Sai Bhargav Avula 2019-8-20
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.
  20 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Debugging and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by