how to combine two figures into one in matlab?

142 Views Asked by At

so I built two normal distributions.. I want to to combine both into a single image, with the two images overlapping partially to look something like this: two plots http://www.uark.edu/misc/lampinen/tutorials/image8BK.JPG

is there any way to do this in matlab?

1

There are 1 best solutions below

8
shaifali Gupta On

Use hold on keyword between different plots. For example:

   plot(x,'r');

   hold on;

   plot(y,'b');

It will plot both x and y in red and blue colors on same graph.