Differences between revisions 2 and 3
Revision 2 as of 2025-12-17 20:25:08
Size: 483
Comment: Note
Revision 3 as of 2025-12-17 20:38:34
Size: 485
Comment: graph -> graphic
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The '''`surfnorm`''' function creates a 3D graph of a surface and the surface normal vectors. The '''`surfnorm`''' function creates a 3D graphic of a surface and the surface normal vectors.

MATLAB surfnorm

The surfnorm function creates a 3D graphic of a surface and the surface normal vectors.


Usage

[X,Y,Z] = cylinder(1:10);

figure;
surfnorm(X,Y,Z);

See also figures and related commands.

To instead calculate the surface normal vectors that would be rendered, try:

[norm_X, norm_Y, norm_Z] = surfnorm(X,Y,Z);


CategoryRicottone

MATLAB/SurfNorm (last edited 2025-12-17 20:38:34 by DominicRicottone)