mro83
Member level 5
matlab save argument must contain a string
Hi all
I wanna save whole workspace of MATLAB with the name containing the value of variable:x, so I write:
save( ['workspace_for_x=',num2str(x),'.mat'])
My question is:
If I want to save just value of some particular variables ( for example a1 and a2) in a simimlar manner, What should I write?
If I write :
save( ['Variables_for_x=',num2str(x),'.mat'], a1,a2)
here arises the MATLAB error:
??? Error using ==> save
Argument must contain a string.
Please let me to know ur comments..
Hi all
I wanna save whole workspace of MATLAB with the name containing the value of variable:x, so I write:
save( ['workspace_for_x=',num2str(x),'.mat'])
My question is:
If I want to save just value of some particular variables ( for example a1 and a2) in a simimlar manner, What should I write?
If I write :
save( ['Variables_for_x=',num2str(x),'.mat'], a1,a2)
here arises the MATLAB error:
??? Error using ==> save
Argument must contain a string.
Please let me to know ur comments..