As the following code shown, there will always be an error saying "Unexpected MATLAB expression" for the first "num2str" in the row defining filename. Please, help me!!!
Best Answer
The ‘filename’ assignment in your code is not the correct syntax.
It should be:
filename = ['A',num2str(kk),'.dat'];
Note the square brackets [], and not parentheses ().
However, using the sprintf function is preferable:
Best Answer