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 ExchangeWorkspace 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