필터 지우기
필터 지우기

Save and Load the variables in GUI Mode

조회 수: 1 (최근 30일)
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 7월 22일
Hello
I nee to save a structure LD in a file. The user types the filename using uiputfile
[file,path] = uiputfile('*.m','Save file name');
if file~=0
save(fullfile(path,file), LD)
end
error:
??? Error using ==> save Argument must contain a string.
Can some one help me pls.

채택된 답변

Walter Roberson
Walter Roberson 2012년 7월 22일
save(fullfile(path,file), 'LD') %note quotes
  댓글 수: 3
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 7월 22일
Hello Walter Roberson
ya! the error I made is
uiputfile('*.m','Save file name');
should have extension *.mat,
thanks for advice!
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 7월 22일
Hello Walter Roberson
If I save handle of an objects does this reference to the objects handle remain same if I reload the handle

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by