I am using "clear all" at the start of a ".m" file that I have written myself (lets call it "myfile.m"). When I run the file, I get three identical messages stating "Warning: The file 'myfile.m' could not be cleared because it contains MATLAB code that is currently executing." I don't want to turn warnings off, because I am writing my own warnings later in the file. Why does this happen and how can I prevent it? I am using Matlab version 2017a.
MATLAB: “clear all” causing annoying warning messages
clear allcontains matlab code that is currently executingwarning
Related Question
- What does the string in ‘DeleteFcn’ evaluate to
- How do i create a program that tell me how many numbers i got after point in A decimal number
- How to Clear all Variables of a Workspace Except for Those Explicitly Excluded
- Hi I am back the code returns an error when i input the forced (value) in command window and i dont know why. the error is Reference to a cleared variable w0.
Best Answer