I kknow I can pad a number up to 3 digits this way:
prematrix = sprintf('%03d', prematrix);
but what if I want a number of digits stored in a for example?
I kknow I can pad a number up to 3 digits this way:
prematrix = sprintf('%03d', prematrix);
but what if I want a number of digits stored in a for example?
I don't know Matlab, but just googled strcat and this should work (untested) for 12 zeros: