Clear persistent variables in functions, keeping breakpoints

I have a function, myfun.m, with some persistent variables inside. My main main.m file at the first line call:
clear variables; clear myfun; clc; close all;
The command clear my fun reset the persistent variables, but delete the breakpoints which I putted to debug my code.
How can I erase persistent variables, but not deleting the breakpoints?

답변 (1개)

카테고리

도움말 센터File Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

질문:

2016년 6월 2일

답변:

2016년 6월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by