Filter löschen
Filter löschen

Save and Load the variables in GUI Mode

1 Ansicht (letzte 30 Tage)
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy am 22 Jul. 2012
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 22 Jul. 2012
save(fullfile(path,file), 'LD') %note quotes
  3 Kommentare
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy am 22 Jul. 2012
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 am 22 Jul. 2012
Hello Walter Roberson
If I save handle of an objects does this reference to the objects handle remain same if I reload the handle

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by