How to properly save workspace?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
after running my script I have all my variables in the workspace. I saved the workspace in a .mat file (using the save workspace option), unfortunately when I open it later on I always get the message " the file is corrupted". Could it happen because the file is too big? In case how to properly save large workspace?
thanks a lot.
3 个评论
Geoff Hayes
2014-8-7
Try saving the data with the '-v7.3' flag. For example,
A = rand(5);
B = magic(10);
save('example.mat','A','B','-v7.3')
According to save, this flag/switch has Version 7.0 features, plus support for data items greater than or equal to 2 GB on 64-bit systems.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!