Saving structs

조회 수: 24(최근 30일)
Tanmay 2012년 6월 21일
댓글: Walter Roberson 2016년 7월 14일
I have a 4563 x 1511 struct and I want to save it for later use. I tried
save structFile.mat -struct structName
but the computer seems to get stuck at the "Busy" mode after I issue this command. Any thoughts?

채택된 답변

Kevin Holst
Kevin Holst 2012년 6월 21일
If you're wanting to save the structure as a structure, don't put in the -struct flag. That saves all of the fieldnames as their own variables. (
Just nix the '-struct' and it should work fine.
  댓글 수: 4
Walter Roberson
Walter Roberson 2016년 7월 14일
Jocelyne Beelen, what is your current directory at the time you try to do the save ? You would not be permitted to save into a directory that is under the MATLAB installation directory.

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

추가 답변(0개)


Community Treasure Hunt

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

Start Hunting!

Translated by