Pause script, edit figure and linked data using brush tool, then continue with script
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Antworten (1)
Jan
am 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 Kommentar
Benoit Valery
am 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 !
Siehe auch
Kategorien
Mehr zu Desktop finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!