How do I add a title to each subplot?
Mostrar comentarios más antiguos
I have the following codes
delta=[-2*pi:0.063:2*pi];
y=sin(delta);
subplot(3,2,1)
plot(y)
y=cos(delta);
subplot(3,2,2)
plot(y)
title(sin(delta))
My question is how do i put the title for each graph and labels? i tried to to do title(sin(delta)) but it doesn't show
Respuesta aceptada
Más respuestas (2)
Chad Greene
el 28 de Abr. de 2016
3 votos
For subplots I often prefer to use ntitle rather than title. The difference is ntitle keeps the text closer to the data, whereas title places the text high above the axes, where it may appear to be an xlabel for to the plot above.
Azzi Abdelmalek
el 13 de Mzo. de 2013
title('sin(delta)')
2 comentarios
Shakir Hussain
el 29 de Mzo. de 2019
Great Azzi
You are always providing short,simple and effective solution
thankyou for your effort
Chad Greene
el 5 de Abr. de 2019
Or this, which is shorter, simpler, and just as effective :-)
title sin(delta)
Categorías
Más información sobre Axes Appearance en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!