How can I clear the workspace but not breakpoints?

4 次查看(过去 30 天)
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!

采纳的回答

Matt J
Matt J 2012-10-25
编辑:Matt J 2012-10-25
CLEARVARS or just CLEAR without "all".

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by