MATLAB: Collapse contour plots on a single plot

collapse contour plots on a single plot

Hi. I have two 10 contour plots with some colorbar to represent intensities. I want to combine them all together on to a single contour plot. Is it possible to do it? If so, can someone help me with the code?

Best Answer

  • If you just want them all on a single plot then just do:
    contour(x1,y1,z1)
    hold on
    contour(x2,y2,z2)
    and so on...
    If you want to stack the contour plots at different z levels then you can look here