Undefined function or method 'matfile'

조회 수: 5 (최근 30일)
Salman Gul
Salman Gul 2016년 6월 1일
댓글: Ben 2018년 1월 21일
save thesis.mat;
save('thesis.mat','tr_temp','tr_temp_sorted','total_cost_temp','total_cost_temp_sorted','parent_temp','parent_temp_sorted','-v7.3');
clear('tr_temp','tr_temp_sorted','total_cost_temp','total_cost_temp_sorted','parent_temp','parent_temp_sorted');
i have created a mat file(v7.3) 'thesis.mat' with several large variables. The mat file even appears in my directory and has the saved variables with the required values. However,
m=matfile('thesis.mat');
gives the error,
Undefined function or method 'matfile' for input arguments of type 'char'.
what am i doing wrong??? im using R2009a

채택된 답변

Steven Lord
Steven Lord 2016년 6월 1일
As indicated on the documentation page online (which is for the most recent release) the matfile function was introduced in release R2011b. Your release is older than this so it does not have this function.
  댓글 수: 2
Salman Gul
Salman Gul 2016년 6월 1일
thanks
Ben
Ben 2018년 1월 21일
Hi, is there a workaround for R2007B?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by