Matlab will only print script name in the command prompt, but not run the matlab script.
Show older comments
I'm fairly new to matlab, but have written a piece of code, and while there aren't any problems with the code when I run it on another system, I've been unable to run the script on the computer I would like since it will only print the file name rather then running the code. I've tried reinstalling matlab on this computer and this also does not seem to fix thte problem. The reason for using this computer is that it has the specifications for the task desired. The problem seems to be with running the script itself through the editor, help would be greatly apprecieated!
6 Comments
Manikanta Aditya
on 20 May 2024
Without using run button, once try to just type the name of the .m file in the command prompt and click on enter and see if you are able to notice anything.
Abhishek Kumar Singh
on 20 May 2024
@Maamoon, can you share your code or sample code which causes you this issue? Otherwise it's be like solving a puzzle game in the dark :)
Maamoon
on 20 May 2024
Manikanta Aditya
on 20 May 2024
Edited: Manikanta Aditya
on 20 May 2024
I tried and ran the shared code in MATLAB R2024a, I was able to get the outputs in the workspace without any issue.
When I typed the "file name.m" into the command prompt, I got the following error:
"Unable to resolve the name 'Calcium_Imaging.m'."
- Do not type "Calcium_Imaging.m" you should not use ".m", just type "Calcium_Imaging" and click enter and see if you are able to notice the outputs.
Maamoon
on 22 May 2024
Manikanta Aditya
on 23 May 2024
Answers (1)
Categories
Find more on Startup and Shutdown 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!