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 日

2 投票

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. ( http://www.mathworks.com/help/techdoc/ref/save.html)
Just nix the '-struct' and it should work fine.

4 件のコメント

Walter Roberson
Walter Roberson 2012 年 6 月 21 日
The -struct flag is only designed for scalar structures, not structure arrays.
Kevin Holst
Kevin Holst 2012 年 6 月 21 日
Right, but would it just ignore it if the variable was a structure array?
Is it just showing 'Busy' because it's an enormous struture array?
Jocelyne Beelen
Jocelyne Beelen 2016 年 7 月 14 日
I am having this same problem, when I try that, I get the message: Error using save Unable to write file mysum.mat: No such file or directory.
I want to save my structure array with a new name.
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 件)

カテゴリ

ヘルプ センター および File Exchange で Structures についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by