Hi i have problem when i saved matrix in name (Ybustotal) in 3D (609*609*1024) the matlab gives me this massage Warning: Variable 'Ybustotal' cannot be saved to a MAT-file whose version is older than 7.3. To save this variable, use the -v7.3 switch. Skipping...
i am using MATLAB R2014a can any one help me with this problem
thank you

 Accepted Answer

Star Strider
Star Strider on 6 May 2016
Apparently, it wants you to use the syntax:
save(filename,'Ybustotal','-v7.3')

5 Comments

mohammed hussein
mohammed hussein on 6 May 2016
Edited: mohammed hussein on 6 May 2016
thank you for answring me what do you mean in filename i used the name of M-file that i am working on it .it doesn't work second i used any name of matrix to save on it . so i used save(Ybustotal,'Ybustotal','-v7.3')
it gives me Error using save Argument must contain a string.
save('NameOfMatFile.mat', 'Ybustotal', '-v7.3')
If you have a current save command like
save MyMat YBustotal
then just add -v7.3
save MyMat YBustotal -v7.3
and if you have not specified the variable names and want YBustotal.mat to be your output file that stores all variables in your current workspace, then
save YBustotal -v7.3
My pleasure.
To save it as the same name as the matrix, do this:
save('Ybustotal.mat','Ybustotal','-v7.3')
You need to use the .mat extension to specify the filename, otherwise MATLAB interprets it as a variable, and saves it to the default file name 'matlab.mat'. All save function arguments must be strings.
thank you very much for all of you it works
Star Strider
Star Strider on 6 May 2016
My pleasure.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!