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

 채택된 답변

Star Strider
Star Strider 2016년 5월 6일

0 개 추천

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

댓글 수: 5

mohammed hussein
mohammed hussein 2016년 5월 6일
편집: mohammed hussein 2016년 5월 6일
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 2016년 5월 6일
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 2016년 5월 6일
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 2016년 5월 6일
thank you very much for all of you it works
Star Strider
Star Strider 2016년 5월 6일
My pleasure.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

질문:

2016년 5월 6일

댓글:

2016년 5월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by