MATLAB: Hi every body.the question is how can i plot subplot like this picture in Matlab. i want draw dotted line cross the subplots like red dotted line and write on it like blue circle.

plotplottingsubplot

Best Answer

(1) learn how to use subplots
MATLAB has a function subplots() which is really easy to use. Personally I prefer the function tight_subplot() which is available on FileExchange ( link ), as it is a bit more convenient to specify the exact location of the axes.
(2) Once your plots are finished, you will want to make each axis invisible (except for the ones to the right):
set(gca,'ycolor','none','xcolor','none')
(3) learn about annotations
MATLAB can create a few default shapes, such as lines and circles, by the function annotation.
Try and see what happens, then post your results here and ask for more help if needed!