[x, y] = meshgrid(linspace(0, 10, 50), linspace(0, 20, 50));
z = zeros(size(x));
figure();
hold on;
axis equal;
surf(x, y, z, 'FaceColor', 'none', 'EdgeColor', [0 0 0]);
x_d = x * 0.05 .* (20 - y) * 0.05;
y_d = x.^2 * 0.01 .* (y * 0.05) - y * 0.5;
surf(x + x_d, y + y_d, z, 'FaceColor', 'none', 'EdgeColor', [1 0 0]);
1 Comment
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492770-plotting-a-meesh#comment_770721
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/492770-plotting-a-meesh#comment_770721
Sign in to comment.