필터 지우기
필터 지우기

load syntax

조회 수: 1 (최근 30일)
Hassan
Hassan 2011년 6월 9일
I am using the following code to load a MAT file. It's not working. It works if I simply type Load 'C:\Data.mat' but if I use Load fname_ it wont work. Could you please tell me if I am missing anything in the code?
[FileName,PathName] = uigetfile('C:\Data.mat'); fname_=strcat(PathName,FileName); load -MAT fname_

채택된 답변

Arnaud Miege
Arnaud Miege 2011년 6월 9일
Use the function syntax rather than the command syntax:
load(fname_,'-mat')
For more details on the function vs. command syntax, see the documentation.
HTH,
Arnaud
  댓글 수: 1
Hassan
Hassan 2011년 6월 9일
thanks a lot Arnaud.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by