They are not defined to work in the editor.
They work on the command line and when the corresponding script or function is executed
I found that putting too many comments before or after the command "clc" and "clear all" in the script, they do not work.
It happens to someone?
Exactly what is it that you think that "clc" and "clear all" do ?
If someone is requiring that you put in clc and "clear all", such as if you will fail an assignment if you do not put them in, then just go ahead and put in and do not worry about what they do or do not do under any particular circumstances. If someone requires that you put them in, then that person is taking responsibility for any program failure that might result.
If no-one is requiring that you put in clc and "clear all", then eliminate any problems with them by simply not putting them in.
"Doctor, doctor, every time I drink a cup of coffee I get a sharp pain in my nose." "Have you tried taking the spoon out of the cup?"
Why are you using the answer box for your questions and comments?
Just so you can accept your own question as the correct answer?
Since my answer was the first correct one, YOU OWE ME!