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

 Réponse acceptée

Star Strider
Star Strider le 6 Mai 2016

0 votes

Apparently, it wants you to use the syntax:
save(filename,'Ybustotal','-v7.3')

5 commentaires

mohammed hussein
mohammed hussein le 6 Mai 2016
Modifié(e) : mohammed hussein le 6 Mai 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.
Walter Roberson
Walter Roberson le 6 Mai 2016
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
Star Strider
Star Strider le 6 Mai 2016
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.
mohammed hussein
mohammed hussein le 6 Mai 2016
thank you very much for all of you it works
Star Strider
Star Strider le 6 Mai 2016
My pleasure.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by