Matlab running a script I executed first no matter which script I try to run
2 views (last 30 days)
Show older comments
Commented: Evan on 18 Jan 2023
Like the title says, I tried a code for a program and ran the program but now no matter what other script I run, it is always this one script. I have tried removing the script, deleting it but it keeps running only that one script. On top of this, none of the variables show up in the workspace. All the previous scripts are confirmed to have worked before I tried this script but I don't know what is causing it after I ran that script. This is on the online version of MATLAB which used to run all of the previous scripts.
Star Strider on 18 Jan 2023
Check to see if you have a copy of it somewhere. MATLAB may be running the copy and ignoring the version you want to run, or it may be running the version you want to run first, and then the other version, so the output never changes.
Also, be sure the version you want to run is saved in the MATLAB search path (What Is the MATLAB Search Path?).
Find more on Entering Commands 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!