figure(1); plot(x,y); title('myTitle');
str = sprintf('just an example of %d that isnt working', variable) title(str)