MATLAB surf

The surf function creates a 3d graphic of a surface.


Usage

[X,Y] = meshgrid(linspace(-3,3,20), linspace(-3,3,20));

Z = log(X.^2 + Y);

figure;
surf(X,Y,Z);

See also figures and related commands.


CategoryRicottone

MATLAB/Surf (last edited 2025-12-17 20:43:30 by DominicRicottone)