Hey everybody,
why does
num = [0 1 2 3 5];for(i=1:5) X(i,:) = ['Hello Nr.',num2str(num(i))];enddisp(X(:,:))
work fine but when I change num to have numbers with double digits like
num = [0 1 12 3 5];
it doestn't work anymore?
digitsdoublenum2str
num = [0 1 2 3 5];for(i=1:5) X(i,:) = ['Hello Nr.',num2str(num(i))];enddisp(X(:,:))
num = [0 1 12 3 5];
Best Answer