How can I fix the problem about saving?

조회 수: 1 (최근 30일)
thu nguyen
thu nguyen 2019년 10월 31일
답변: thu nguyen 2019년 10월 31일
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에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by