2016-08-11 29 views
0

我有一个叫做pic的4-D双数组,其dim(512,512,100,29)。 实际上它们是'.nii'图像的暗淡度(512,512,100)。 每个.nii图像有100个切片。 我加载了29个图像在matlab中的pic(:,:,:,i)数组,现在我想保存它。 但matlab不能正确保存它。4-d double array不能保存到.mat 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... 

我应该怎么办?

回答

1

的数据太大使用默认.MAT文件格式,明确状态保存为警告,您需要使用-v7.3开关保存此大小的文件的

save('mypic.mat', 'pic', '-v7.3') 

the documentation为有关各种.mat文件格式及其优点和缺点的更多信息。