- Control over the spacing between the plots and around the edges of the layout
- An option for a shared title at the top of the layout
- Options for shared x- and y-axis labels
- An option to control whether the tiling has a fixed size or variable size that can reflow
How do I add a title to each subplot?
2,027 次查看（过去 30 天）
编辑： MathWorks Support Team ，2021-3-23
I have the following codes
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
Image Analyst 2013-3-13
编辑：MathWorks Support Team 2021-3-23
Starting in R2019b, you can use the tiledlayout and nexttile functions to create a configurable tiling of plots. The configuration options include:
For more information, see Combine Multiple Plots.
For R2019a and before, put the title commands after the plot and before the next subplot. Specify the title as a character vector or string scalar.
Chad Greene 2016-4-28
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 2013-3-13
Find more on Axes Appearance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!