How can I fix the problem about saving?

1 次查看(过去 30 天)
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
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
Hi, save('dvhmatrixB','dvhmatrixB');
This will save dvhmatrixB in dvhmatrixB.mat file
Hope this helps

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by