Finding z-coordinate of a point on a surface
Show older comments
I have generated a surface [AX, AY, AZ], where AX, AY, AZ are NxN doubles. How to find z-coordinate of a particular point on the surface for given values of x- and y- coordinates using MATLAB's 'roots' function? Can the projection of the surface be taken on z-axis to find the z-coordinate? If yes, how?
Accepted Answer
More Answers (1)
Image Analyst
on 12 Aug 2013
Why are Ax, Ay, and AZ 2-dimensional matrices??? Wouldn't they be 1-D vectors? If they are 1-D, just index into the N-by-2 array
Z = yourArray(AX, AY);
If your AX and AY are not in your matrix, then you might use TriScatteredInterp() or similar functions to interpolate Z values for coordinates that are not explicitly given in your array.
4 Comments
Walter Roberson
on 12 Aug 2013
parametric surfaces use 2-dimensional matrices instead of using vectors that imply rectangular grids.
Sahil
on 12 Aug 2013
Walter Roberson
on 12 Aug 2013
When you say you have "generated" the surface, does that mean you have the equation of the surface? If so then is it allowed to make use of the equation in finding the needed point? Is the surface a multinomial? If so does it have any Ax^N * Ay^M terms, or only Ax^N and Ay^M terms ?
Sahil
on 12 Aug 2013
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!