MATLAB: Error in saving results

save result error

Hi, I am using the following command for saving the results at the end of my matlab code.
eval(['save RNDalldata Nsamp nsensor Hom_RND Z nat_freq_RND stat_ABS_RND']);
Though all other variables get saved properly, the variable named Hom_RND [10000x10000x4 complex double] is not getting saved, instead I am getting this error massage:
Warning: Variable 'Hom_RND' cannot be saved to a MAT-file whose version is older than 7.3. To save this variable, use the -v7.3 switch. Skipping…
It would be really helpful if I get some clue about how to handle this situation(/how to use use the -v7.3 switch)for saving the aforementioned variable.
Thank you.
Tanmoy

Best Answer

See save with version for usage of this command with the -v7.3 switch. Should just be able to change your above line of code to
save RNDalldata Nsamp nsensor Hom_RND Z nat_freq_RND stat_ABS_RND -v7.3
(I don't think that there is any need for the eval that you have.)