matlab - variable in plot title -


i want do

for = 1 : size(n, 2)     figure(i);     title('n = %d', i); %other stuff 

but setting title doesn't work. why?

because forgot add sprintf

for = 1 : size(n, 2)  figure(i);  title(sprintf('n = %i', i)); %# %i integer %other stuff end 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -