Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Robert
Posts:
4
Registered:
11/30/12
|
|
Contour Plots with Vectors
Posted:
Nov 30, 2012 1:13 PM
|
|
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
|
|
|
|