I have a loop which is generating some data and in certain cases I want to save the data. Therefore I have:
save(int2str(i), x);
This doesn’t work and comes out with the message:
??? Error using ==> save
Argument must contain a string.
What am I doing wrong?
The x has to be ‘x’: