Rogue *.m file crashing my MATLAB Online

Can someone please help?
I wrote a subroutine to go through 1000 data points that I wanted plotted and accidentally put the "figure" command in the loop. When I ran it, it began to make the 1000 figures and crashed the browser tab. No matter what I try to do to quit MATLAB, when I bring it up again, it automatically re-launches this unfinished *.M file running. I can't get it to just launch fresh. I have tried
  • Cntrl+C - that did NOTHING
  • going into the https://drive.mathworks.com/files/, correcting the error in the file in a text editor, and uploading the corrected file
  • deleting the contents of the Sessions folder within https://drive.mathworks.com/files/
  • logging out of MATLAB, clearing the cache and running again
  • logging into MATLAB from a totally different browser
  • pasting "clear ..." and the *.m fie name as soon as I can, but the subroutine takes over too fast
Can anyone please help? I have wasted one hour just trying to ever get back to using online MATLAB again

4 Kommentare

Michael
Michael am 10 Okt. 2025
To the MATLAB developer community. While it is my fault for putting such a stupid error in my loop, this is a VERY bad bug. The App must have some way to detect that a user is trying desperately to get out of this situation. When I get to the MATLAB Home Open MATLAB Online button, there must be some way to tell it - Open, but for the love of god, don't run anything!
Torsten
Torsten am 10 Okt. 2025
Is there is a .asv file in your folder that MATLAB might use when restarting ?
dpb
dpb am 10 Okt. 2025
Call Mathworks support at <Product Support Page>
Michael
Michael am 11 Okt. 2025
Bearbeitet: Michael am 11 Okt. 2025
I do not see any .asv files, but either way, in the https://drive.mathworks.com/files/, I deleted all files.
By the way, I found a keyboard with a break key (my laptop does not have this key) and I figured out that the instant MATLAB online opened, by repeatedly clicking ctrl-break, I was able to break the loop. And @Chris LaPiere, I know this isn't the developer website, but sometimes developers have answered a question posted on a community board, so I hoped one of them might see it.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Satyam
Satyam am 13 Okt. 2025

0 Stimmen

Hi Michael,
I faced a somewhat similar issue. I tried a workaround which solved the issue. Here are the steps:
  • Reload the MATLAB Online instance and repeatedly press Ctrl + C when the command window is active before it loads the workspace.
  • It freezes the editor from opening the file in workspace however, on restarting the MATLAB Online session, similar problem will be encountered. In order to solve it you can choose the Exit MATLAB option by clicking on the top right profile button.
  • Now relaunching MATLAB session would solve the issue and it will start afresh.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2025b

Tags

Gefragt:

am 10 Okt. 2025

Beantwortet:

am 13 Okt. 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by