Reputation: 1
while trying to save a workspace variable it throws an error in matlab saying I need to switch to -v7.3. I am not sure how to resolve this error since the earlier versions dont support readtable function or xlsread function for an excel file.
Upvotes: 0
Views: 332
Reputation: 1580
You simply need to use one of these:
save('file.m','var1','var2',-v7.3);
save file.m var1 var2 -v7.3
Matlab will save data by default to an older format of .mat files. This format does not support variables larger than 2^31 bytes but can be read by old releases of Matlab (pre-R2006b). If you have large variables, you need to switch to format 7.3.
All of this is in the documentation from the save function. Type doc save
and read.
Upvotes: 1