I've got a 1×4 character array containing a 4-digit number.
IRN = '0050';
I'm looking for a way to increment this number in a for loop. For example, with 3 iterations the output of the for loop would be as follows;
MRN = 005100520053
Can MATLAB increment numbers, within a character array, in a for loop?
Best Answer