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),
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?