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?

 채택된 답변

madhan ravi
madhan ravi 2020년 6월 29일

0 개 추천

Make a section break of that lines of code.

댓글 수: 1

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

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jared MacDonald
Jared MacDonald 2021년 3월 22일

2 개 추천

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

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!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Live Scripts and Functions에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2020년 6월 29일

댓글:

2023년 7월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by