How to make rectangular meshgrid

8 次查看(过去 30 天)
Hi i wanted to how can we create and plot a rectangular meshgrid. Thanks in advance

回答(1 个)

Walter Roberson
Walter Roberson 2018-8-29
Example:
[X, Y] = meshgrid( linspace(-2,2), linspace(-pi, pi) );
Z = X/10 + X .* sin(Y);
surf(X, Y, Z, 'edgecolor', 'none');

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by