Pause script, edit figure and linked data using brush tool, then continue with script
조회 수: 6 (최근 30일)
이전 댓글 표시
Hello, In the middle of the a script, I need to plot data, inspect and delete bad points (using brush tool) from both plot and the source matrix, before continuing with the rest of the script. I have tried uiwait, but then my plot gets locked and I cannot delete the data I select with the brush tool. Any help would be greatly appreciated. Thanks.
댓글 수: 1
답변 (1개)
Jan
2018년 11월 23일
Do not use scripts, but divide the work into two functions. Call one function at first. When it is finished, modify the data. Then call the seconds function for the rest of the work.
Maybe pause works, or keyboard, dbstop or something else. But using tricks to stop Matlab is an indirection, when the work can be split to two sections in such a clear and clean way.
댓글 수: 1
Benoit Valery
2018년 11월 23일
Thank you for this response. What do you mean by tricks ?
Either with a function or with a script, don't we have to implement a sort of pause somewhere ? Can you explain why a function has not a similar behavior ?
Sorry to ask, but I'm quite new to matlab. Many thanks !
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!