Filter löschen
Filter löschen

Matlab is no longer running the scripts i wrote that worked previously

1 Ansicht (letzte 30 Tage)
Siiri
Siiri am 2 Okt. 2013
Kommentiert: Image Analyst am 2 Okt. 2013
when I try to load them I get these error messages. I've tried restarting matlab and can open the scripts but not run them.
EDU>> load plottemps.m Error using load Number of columns on line 2 of ASCII file C:\Users\Siiri\Documents\MATLAB\plottemps.m must be the same as previous lines.
EDU>> load plottemps Error using load Unable to read file 'plottemps': no such file or directory.

Antworten (1)

Harsheel
Harsheel am 2 Okt. 2013
Bearbeitet: Harsheel am 2 Okt. 2013
The function LOAD is used to load variables from a MAT file into MATLAB workspace. If you intend to execute your matlab script then just execute the following command on the MATLAB Command prompt:
>> run plottemps.m
If the file is a function file and not a script then, execute the following command:
>> plottemps
You can find more information here:
  1 Kommentar
Image Analyst
Image Analyst am 2 Okt. 2013
You can just type plottemps either way. You do not need "run" and ".m" even if it is a script.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by