<< loglog | Graphics functions | meshz >> |
mesh(X, Y, Z) |
mesh(Z) |
mesh(Z, C) |
mesh(X, Y, Z, C) |
mesh(parent, ...) |
mesh(..., propertyName, propertyValue) |
go = mesh(...) |
x-coordinates: vector or matrix.
y-coordinates: vector or matrix.
z-coordinates: vector or matrix.
Color array: m-by-n-by-3 array of RGB triplets.
a scalar graphics object value: parent container, specified as a axes.
a scalar string or row vector character.
a value.
a graphics object: surface type.
mesh creates a 3-D wireframe mesh.
You can customize the appearance of the plot using various options such as color, lighting, and shading.
f = figure();
[X, Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R) ./ R;
mesh(X, Y, Z)
axis square
f = figure();
F = str2func('@(z) z .^ 3 - 1');
x = linspace(-2, 2, 100);
y = linspace(-2, 2, 100);
[X, Y] = meshgrid(x, y);
Z = X + 1i*Y;
W = F(Z);
mesh(real(W), imag(W), abs(W))
xlabel('Real')
ylabel('Imaginary')
zlabel('Magnitude')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET