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

조회 수: 41 (최근 30일)
Joan Vazquez
Joan Vazquez 2020년 6월 29일
댓글: Alessio Ulivi 2023년 7월 4일
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일
Make a section break of that lines of code.
  댓글 수: 1
Joan Vazquez
Joan Vazquez 2020년 6월 29일
Thanks, I still wish there was a "right click, clear this output" feature :)

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

추가 답변 (1개)

Jared MacDonald
Jared MacDonald 2021년 3월 22일
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
Nathaniel H Werner
Nathaniel H Werner 2022년 8월 2일
I highly encourage implementing a command to programmatically clear all or a specified output in a live script.
Alessio Ulivi
Alessio Ulivi 2023년 7월 4일
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!

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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by