MATLAB: Subplot Titles Don’t Appear

MATLABsubplottitle

Hi, I just have a simple question about subplot titles. I have the following code-
figure
subplot(1,2,1)
[hax1,hline1] = plot....
title('Mean Value')
subplot(1,2,2)
[hax2,hline2] = plot....
title('95% Prediction Interval Range')
When I do this the titles don't show up. Do any of you recognize something I'm overlooking with this?
Thanks!

Best Answer

t=0:0.1:10;
y=sin(t)
figure
subplot(1,2,1)
hax1 = plot(t,y)
title('Mean Value')
subplot(1,2,2)
hax2= plot(t,2*y)
title('95% Prediction Interval Range')