Constants that cannot be delete with CLEAR
13 views (last 30 days)
Show older comments
Simple,
I have some personal constants define in startup.m but every time I type CLEAR in the command window I loose them.
Is there a way to make some constants non deletable ?
Thank you.
0 Comments
Accepted Answer
More Answers (1)
Dyuman Joshi
on 4 Jun 2023
Moved: Matt J
on 4 Jun 2023
You can use this command
clearvars -except VariblesNotToBeDeleted
See Also
Categories
Find more on Function Creation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!