Clear all returns warning evaluatecode.m could not be cleared because it contains the code that is currently executing?
Mostra commenti meno recenti
I don't use clear all to clear workspace variables. I only use it at the beginning of the main method (that calls other functions) to make sure I have a fresh start after tests to make sure small parts of the algorithm works.
With that background out of the way, recently when I try to run a section that only contains a clear all; (first line of the whole code) and a clc;, it returns the following 3 warnings that I have never seen before (as I have been using clear all in this fashion for a long time):
Warning: The file 'C:\Program
Files\MATLAB\R2018a\toolbox\matlab\codetools\embeddedoutputs\+matlab\+internal\+editor\evaluateCode.p'
could not be cleared because it contains MATLAB code that is currently executing.
Warning: The file 'C:\Program
Files\MATLAB\R2018a\toolbox\matlab\codetools\embeddedoutputs\+matlab\+internal\+editor\evaluateCode.p'
could not be cleared because it contains MATLAB code that is currently executing.
Warning: The file 'C:\Program
Files\MATLAB\R2018a\toolbox\matlab\codetools\embeddedoutputs\+matlab\+internal\+editor\evaluateCode.p'
could not be cleared because it contains MATLAB code that is currently executing.
I am not as annoyed but interested in knowing why it suddenly starts to produce these warnings when it hadn't done so in the past 5 years of my experience with using clear all in MATLAB. It also produces other warnings such as when I try to load a data file it warns some subscripts are missing or something, which I turned the warning off after searching on google.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Variables in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!