How can I fix the problem about saving?

1 vue (au cours des 30 derniers jours)
thu nguyen
thu nguyen le 31 Oct 2019
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!

Réponse acceptée

thu nguyen
thu nguyen le 31 Oct 2019
Yeah, It works. Thank you so much. I missed declaring 'string' for variable.

Plus de réponses (1)

Sai Bhargav Avula
Sai Bhargav Avula le 31 Oct 2019
Modifié(e) : Sai Bhargav Avula le 31 Oct 2019
Hi, save('dvhmatrixB','dvhmatrixB');
This will save dvhmatrixB in dvhmatrixB.mat file
Hope this helps

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by