New to matlab.

I am trying to make a contour of some 3D data I have. I have several

longitude lines of data that pass over the same 2 poles. I want to

put them one plot that is 2D with a color contour for the z axis. so

I tried:

[X,Y,Z] = meshgrid(mydatax,mydatay,mydataz);

contour(X,Y,Z);

But I get the error, Contour data must have 2 dimensions.

how do I get the z axis data into the contour?

thanks for your answer tim, but ndgrid did the same thing.

I have a set of data that is an outline of a sphere in cartesain

stest (108 x 3) (with a x, y, and z column)

I need to map them as a sphere or contour so what I need is

stestx (108 x 108)

stesty (108 x 108)

stestz (108 x 108)

But when I use meshgrid or ndgrid

[stestx, stesty, stestz] = ndgrid (stest(1:108,1), stest(1:108,2),

stest(1:108,3));

I get

stestx (108 x 108 x 108)

stesty (108 x 108 x 108)

stestz (108 x 108 x 108)

How do I create 3 interconnected 2D matrices with 3 sets of data?

axis.

I have a set of data that is an outline of a sphere in cartesain

stest (108 x 3) (with a x, y, and z column)

I need to map them as a sphere or contour so what I need is

stestx (108 x 108)

stesty (108 x 108)

stestz (108 x 108)

But when I use meshgrid or ndgrid

[stestx, stesty, stestz] = ndgrid (stest(1:108,1), stest(1:108,2),

stest(1:108,3));

I get

stestx (108 x 108 x 108)

stesty (108 x 108 x 108)

stestz (108 x 108 x 108)

How do I create 3 interconnected 2D matrices with 3 sets of data?

axis.

1. 3D contour plot using data point

2. contour plot on discrete data point

3. Referencing data set B in data step A's DO loop

4. specific data points in data range

5. How to find closest point(s) around a specific point in point cloud?

6. How to find closest point(s) around a specific point in point cloud?

7. My apostrophe and quotations are making weird a's and e's

8. Aligning a data point in a specific bar on a chart

9. Hey 7, was it 50 million data points, or was it 500 million data points?

10. MulitView - does all data load on pageload or only when a specific view is made active?

11. how do I link a text box on a chart to a specific data point?

12. How to return a specific data point from a large array if I don't

13. How freeze streaming data at specific point in time?

14. labels assoc. w/specific data point

15. pointing to a specific dns server for a specific zone

3 post • Page:**1** of **1**