How can I clear the workspace but not breakpoints?

5 vues (au cours des 30 derniers jours)
ColdKing
ColdKing le 25 Oct 2012
If I use "clear all", the workspace is cleared, so are breakpoints set in the files. Is there any approach to prevent clearing breakpoints? Of course I don't want to specify variable names after "clear".
Thanks!

Réponse acceptée

Matt J
Matt J le 25 Oct 2012
Modifié(e) : Matt J le 25 Oct 2012
CLEARVARS or just CLEAR without "all".

Plus de réponses (1)

Jonathan Epperl
Jonathan Epperl le 25 Oct 2012
Or
clear variables
which will clear all variables, but nothing else. See help clear for other possible keywords (one of which all is, too).

Catégories

En savoir plus sur Workspace Variables and MAT Files 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