I want to do
for i = 1 : size(N, 2) figure(i); title(\'N = %d\', i); %other stuff
but setting the title doesn\'t work. Why?
num2str should also works.
title(['N = ',num2str(i)]);
Because you forgot to add sprintf
sprintf
for i = 1 : size(N, 2) figure(i); title(sprintf('N = %i', i)); %# %i for integer %other stuff end