How can I clear the workspace but not breakpoints?

조회 수: 2 (최근 30일)
ColdKing
ColdKing 2012년 10월 25일
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