Pages

Saturday, November 21, 2015

Matlab plotting

The matlab code for plotting multiple figures in one main boxed frame is given below. Consider that we want to plot 9 graphs in one figure similar to figure 1 below. This blog post will be updated when required.
Figure 1: M x N matrix 
figure ;

subplot(3,3,1)  % makes a three into three metrix and place the graph in position 1 
plot (xxx)
hold on
plot (uuuu,'red')
plot (yyyy)

subplot(3,3,2) % put the result in place 2 
plot (XXXXX)
hold on
plot (XXXXa,'red')
plot (XXXXX,'green')

subplot(3,3,3)

subplot(3,3,4)

and so on

subplot (3,3,[8,9])   Plot the graph on two boxes i.e 8 and 9 

1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete