Matlab no longer running scripts

조회 수: 59 (최근 30일)
Heather
Heather 2013년 2월 4일
답변: Walter Roberson 2024년 12월 6일
Hello,
I have been using my current version of Matlab for months, (R2011a), and I was using it no less than 20 minutes ago, and now it won't run. I push the run button, and nothing happens or changes. It was working, then all of a sudden it stopped for no reason.
Thank you, Heather
  댓글 수: 4
Heather
Heather 2013년 2월 4일
I have tried restarting MATLAB, restarting computer. I don't get any kind of error because it doesn't even attempt to run my code. I can write all the code I want, I just can't seem to get it to run. I just tried publishing the code, and it still doesn't work. I also just noticed there aren't any ">>" in my Command Window to work with either.
Sean de Wolski
Sean de Wolski 2013년 2월 4일
Contact Support!

댓글을 달려면 로그인하십시오.

답변 (7개)

Brittany Morison
Brittany Morison 2016년 4월 21일
Check if it's running an infinite loop. and press control c to stop that.
That's what was happening to me when i couldn't run my code
  댓글 수: 2
André Francisco
André Francisco 2017년 2월 13일
I had the exact same problem and tried that, and now it works. I also typed control v, (dont know if it helped in any way, im kind of a noobie still). But yup, same problem, and now its fixed. ty
Walter Roberson
Walter Roberson 2024년 10월 7일

댓글을 달려면 로그인하십시오.


Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 4일
Close your Matlab session, then reopen it
  댓글 수: 2
Heather
Heather 2013년 2월 4일
I tried that, even tried restarting computer
Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 4일
Then re-install Matlab

댓글을 달려면 로그인하십시오.


Christopher Gomez
Christopher Gomez 2018년 6월 28일
편집: Christopher Gomez 2018년 6월 28일
I got the very same problem. The code was running like a charm a minute ago, and then nothing... and when you run and go to the next part of the code, it does so, but it does not spill any result anymore... just weird... (Version 2017)

Mostafa Youssef
Mostafa Youssef 2019년 9월 20일
Try to change the name of script.m file. This happens if you have 2 files with the same name.

Charles Kluepfel
Charles Kluepfel 2023년 7월 14일
I had the same problem. To fix it I closed Matlab and restarted it.
But a temporary workaround is just to save the .m file and then run it by typing the name in the command window.

Hifza
Hifza 2024년 10월 27일
I was having same problem, i clicked 'clear data' multiple times then it started showing something on command window,,,so i clicked 'ctrl+c' to stop all executions. it worked.
  댓글 수: 1
Ain Nur Dania
Ain Nur Dania 2024년 12월 6일
this worked too for me. thank you

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2024년 12월 6일
For certain older versions of MATLAB, and more common on Mac, MATLAB could apparently hang at random times, including on start-up. The problem had to do with Source Control. The workaround was
Preferences -> Source Control -> MATLAB Source Control Preferences -> Source Control Integrations -> [ ] Enable source control
which you would need to uncheck.
The hanging problem was supposedly fixed several releases ago -- but not long ago I did see a post from someone indicating the turning off source control fixed problems for them on a relatively recent release.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by