简体   繁体   中英

How can I save MATLAB workspace with java objects?

When I try to save it says "can't write file", and I'm pretty sure it's because I have a ton of java objects laced throughout various structures, etc. I don't even care about saving these, but excising them all from my workspace is nearly impossible. Sometimes it works and just gives a bunch of warnings, but at the moment I'm stuck. I know I have permissions and disk space. Anyone know a workaround?

MATLAB's SAVE command lets you list the variables you wish to save. So, if you only want to save x , y , and q , you can do:

save mydata.mat x y q

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM