Effacer les filtres
Effacer les filtres

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

6 vues (au cours des 30 derniers jours)
David Dean
David Dean le 18 Juil 2016
Commenté : Benoit Valery le 23 Nov 2018
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.

Réponses (1)

Jan
Jan le 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 commentaire
Benoit Valery
Benoit Valery le 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 !

Connectez-vous pour commenter.

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by