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!

 Respuesta aceptada

thu nguyen
thu nguyen el 31 de Oct. de 2019

0 votos

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

Más respuestas (1)

Sai Bhargav Avula
Sai Bhargav Avula el 31 de Oct. de 2019
Editada: Sai Bhargav Avula el 31 de Oct. de 2019

1 voto

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

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 31 de Oct. de 2019

Respondida:

el 31 de Oct. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by