Defining coordinates and points in a 3D plot
18 ビュー (過去 30 日間)
古いコメントを表示
Breanna Elliott
2018 年 9 月 2 日
コメント済み: Walter Roberson
2018 年 11 月 29 日
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
1 件のコメント
採用された回答
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!