MATLAB: Saving structs

savestruct

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?

Best Answer

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.