Matlab no longer running scripts

304 vues (au cours des 30 derniers jours)
Heather
Heather le 4 Fév 2013
Réponse apportée : Hifza le 27 Oct 2024
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 commentaires
Heather
Heather le 4 Fév 2013
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 le 4 Fév 2013
Contact Support!

Connectez-vous pour commenter.

Réponses (6)

Brittany Morison
Brittany Morison le 21 Avr 2016
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 commentaires
André Francisco
André Francisco le 13 Fév 2017
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 le 7 Oct 2024

Connectez-vous pour commenter.


Azzi Abdelmalek
Azzi Abdelmalek le 4 Fév 2013
Close your Matlab session, then reopen it
  2 commentaires
Heather
Heather le 4 Fév 2013
I tried that, even tried restarting computer
Azzi Abdelmalek
Azzi Abdelmalek le 4 Fév 2013
Then re-install Matlab

Connectez-vous pour commenter.


Christopher Gomez
Christopher Gomez le 28 Juin 2018
Modifié(e) : Christopher Gomez le 28 Juin 2018
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 le 20 Sep 2019
Try to change the name of script.m file. This happens if you have 2 files with the same name.

Charles Kluepfel
Charles Kluepfel le 14 Juil 2023
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 le 27 Oct 2024
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.

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by