Defining coordinates and points in a 3D plot
16 次查看(过去 30 天)
显示 更早的评论
How do I define the length of x (0 to 1m) and y (0 to .5m) with a grid of 101 by 51 points? This is a 3D plot
采纳的回答
Walter Roberson
2018-9-2
xv = linspace(0, 1, 101);
yv = linspace(0, 0.5, 51);
[X, Y] = ndgrid(xv, yv);
Z = sqrt(sin(X)) .* cos(Y-X).^2;
surf(X, Y, Z, 'edgecolor', 'none');
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!