I am confusing while I am using 'writematrix'.
Here is the code have the problem.
CellRange = ['A',num2str(i)];
I know the Range should be Character type.
firstRow = i;
firstCol = 'C';
cellRange = [firstCol,num2str(firstRow)];
Result of cellRange is character type as I expected.
But when I applied this into upper code, it's error message said that 'The range must be a character vector of the form 'A1:B2' or 'A1''
Is there something adjust for this?