How to plot contour with contour lines data

Discussion in 'MATLAB' started by Cristian D, Mar 27, 2010.

  1. Cristian D

    Cristian D Guest

    Hello all,

    I'm looking for a simple way to plot contours from de contour data returned by de "contour" function.

    For example:
    Z = peaks;
    [C,h] = contour(interp2(Z,4));

    I have the contours lines data on variable "C", if I only have the "C" data available, how can I plot the contours again??
    One possible way is to iterate for every line of C and then make a simple plot with each line on the same figure, but in this case all the lines have the same color. Is there any other way of making the contour plot again easyly?

    Regards,
    Cristian
     
    Cristian D, Mar 27, 2010
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.