How can I fix the problem about saving?

Hi everyone,
I have a problem like this
save(strcat('dvhmatrixB','.mat'),dvhmatrixB)
??? Error using ==> save
Argument must contain a string
Why the matlab does not work? Thanks for your help!

 採用された回答

thu nguyen
thu nguyen 2019 年 10 月 31 日

0 投票

Yeah, It works. Thank you so much. I missed declaring 'string' for variable.

その他の回答 (1 件)

Sai Bhargav Avula
Sai Bhargav Avula 2019 年 10 月 31 日
編集済み: Sai Bhargav Avula 2019 年 10 月 31 日

1 投票

Hi, save('dvhmatrixB','dvhmatrixB');
This will save dvhmatrixB in dvhmatrixB.mat file
Hope this helps

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

質問済み:

2019 年 10 月 31 日

回答済み:

2019 年 10 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by