Matlab will only print script name in the command prompt, but not run the matlab script.

30 views (last 30 days)
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
Maamoon
Maamoon on 22 May 2024
Thank you for the response! I've tried this and I still get the same issue, the code runs, but I don't get any of the outputs as compared to the other desktop I use. However, I just ran through the script one by one, and am realising that it's skipping over the for loops in my code. Specifically, it skips the steps and just jumps to the end, is this a problem with the mode I'm in potentially?

Sign in to comment.

Answers (1)

Maamoon
Maamoon on 22 May 2024
Moved: Lone_wolf on 18 Jun 2024
I've found out what it is! It was a problem with my code!!! I was calling for all files that ended in '.tiff', as opposed to 'tif'. Thank you all for the help!

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!