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

 采纳的回答

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

5 个评论

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
My pleasure.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by