How to clear a specific piece of output in a Live Script?
조회 수: 71 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
추가 답변 (1개)
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
2022년 8월 2일
I highly encourage implementing a command to programmatically clear all or a specified output in a live script.
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 Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!