我有一个名为pic的四维双数组,暗值为( 512,512,100,29).实际上,它们是“.nii”图像,昏暗度为( 512,512,100)。每个.nii图像有100片。我在matlab ( :,i)数组中加载了29个nii图像,现在我想保存它。但是matlab没有正确地保存它。
save( 'mypic.mat' ,'pic');matlab显示警告:
Warning: Variable 'pic' cannot be saved to a MAT-file whose version is
older than 7.3. To save this variable, use the -v7.3 switch. Skipping... 我该怎么办?
发布于 2016-08-11 13:32:31
数据太大,无法使用默认的.mat文件格式保存,正如警告明确指出的那样,您需要使用-v7.3开关来保存这个大小的文件。
save('mypic.mat', 'pic', '-v7.3')有关各种.mat文件格式及其优缺点的更多信息,请参见文献资料。
https://stackoverflow.com/questions/38897745
复制相似问题