| Contents | Index |
surfnorm(Z)
surfnorm(X,Y,Z)
[Nx,Ny,Nz] = surfnorm(...)
surfnorm(Z) plots a surface of the matrix Z with surf and displays its surface normals as radiating vectors.
surfnorm(X,Y,Z) plots a surface and its surface normals from the vectors or matrices X, Y, and matrix Z
[Nx,Ny,Nz] = surfnorm(...) returns the components of the 3-D surface normals for the surface without plotting the surface or surface normals.
surfnorm does not accept complex inputs.
Reverse the direction of the normals by calling surfnorm with transposed arguments:
surfnorm(X',Y',Z')
The surface normals represent conditions at vertices and are not normalized. Normals for surface elements that face away from the viewer do not display.
surfl uses surfnorm to compute surface normals when calculating the reflectance of a surface.
[Nx,Ny,Nz] |
x, y, and z components of the three-dimensional surface normals for the surface |
An imaginary line perpendicular to a flat surface or perpendicular to the tangent plane at a point on a non-flat surface
Plot the normal vectors for a truncated cone.
[x,y,z] = cylinder(1:10); surfnorm(x,y,z) axis([-12 12 -12 12 -0.1 1])

After performing a bicubic fit of the data in the x, y, and z directions, diagonal vectors are computed and crossed to form the normal at each vertex.
isonormals | quiver3 | surf | surface | surfl

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |