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

조회 수: 1 (최근 30일)
Siiri
Siiri 2013년 10월 2일
댓글: Image Analyst 2013년 10월 2일
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.

답변 (1개)

Harsheel
Harsheel 2013년 10월 2일
편집: Harsheel 2013년 10월 2일
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
Image Analyst
Image Analyst 2013년 10월 2일
You can just type plottemps either way. You do not need "run" and ".m" even if it is a script.

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

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by