I want to add the subtitle (a),(b),...(c) below each image as the below figure: Could you help to write it in MATLAB? subplot_tight. 1 Comment Show Hide all comments How can I edit it? My code is as below, the figure(1) is as I wish, but my figure(2) is not, as it only shows dataset 16-20. Learn more about title below the figure It then uses the positions to place a new hidden axes over all the plots and adds a new x and y label to that axes. Skip Navigation ... Write A MATLAB Code That Plots The Functions Shown In The Figure Below. I changed 4 lines from your code and marked them as " % NEW". Answer to Write a MATLAB code that plots the functions shown in the figure below. Not surprisingly, it is a wrapper around subplot, with an added option to specify the spacing between an axes and its neighbors. The Position argument requires 3 inputs, namely, the x,y and z coordinates. My code will create 4, 3x3 subplots so i need titles to differentiate each of them. Aligning subplots (width) in a figure. Instead, get the position of the 4th subplot and use that position to set the UI table. I find subplot_tight to be the easiest to use, since it has a syntax that is closest to the MATLAB function subplot. It uses the position of the existing plots to calculate the size (height and width) of a rectangle encompassing all plots in the window. Thanks This is current code for above image. 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. Hi, I have 33 dataset and I'm trying to make a subplot to show the figures. h = subplot(2,2,4); % NEW I am using subplot to display multiple image in the a figure. if it is possible, let me know how to control the margin between image and the sub-title. You can provide negative value to the y-coordinate in order to push the title below the axes. I want to put a title at the top of the subplot. Partha - if you are trying to give your figure (composed of several subplots) a title, then consider using the function suplabel found in the File Exchange. How can overlay two contour plot in a subplot; How to have multiple color maps two different data-sets portrayed on single axes; How to do a subplot loop; How to obtain empty 3d plot; Vertical Title in subplot; How to plot multiple figures in the same figure in matlab? Learn more about aligning image, image processing, subplots, figure In normalized units, 0,0,0 is the left-bottom corner and 1,1,1 is the right-top corner of the axes. title below the figure.