Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Contour Plots with Vectors
Replies: 1   Last Post: Nov 30, 2012 2:21 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Robert

Posts: 4
Registered: 11/30/12
Contour Plots with Vectors
Posted: Nov 30, 2012 1:13 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I've done quite a bit of reading over this topic and still can't quite get my code to work.

I have three 1 dimensional vectors. The x and y values correspond to cordinates and the z values will be a magnitude reading taken at the x and y cordinates.

For example x=[1 4 2 3] y=[5 4 2 6] z=[1.1 1.9 1.6 1.2]

I need to make a contour plot of this data. I know I need z to be at least a 2x2 matrix and so the data must be interpolated at the points I don't know.

My question is if I know the values below how do I use interp2 to find the '+' values so I can use that resulting matrix in a contour plot

1.1 + + +
+ 1.9 + +
+ + 1.6 +
+ + + 1.2

Thanks for any and all help



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.