Clear Filters
Clear Filters

Pause script, edit figure and linked data using brush tool, then continue with script

6 views (last 30 days)
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.

Answers (1)

Jan
Jan on 23 Nov 2018
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 Comment
Benoit Valery
Benoit Valery on 23 Nov 2018
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 !

Sign in to comment.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!