Info
この質問は閉じられています。 編集または回答するには再度開いてください。
3d dimensional surface
1 回表示 (過去 30 日間)
古いコメントを表示
I'm trying to plot a 3d dimensional surface. The function given is
The code below is the one I'm using.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219093/image.png)
v = [-2:0.1:2];
w = [-2:0.1:2];
[X,Y] = meshgrid(v,w);
Z = 6*X^2-4*X^2*Y^2;
figure(3);
surf(X,Y,Z)
And this is the output in MATLAB:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219092/image.png)
Now when I do this in Wolfram alpha i'm getting a much smoother surface. So I'm wondering what I am doing wrong: https://www.wolframalpha.com/input/?i=3d+plot+6x%5E2-4x%5E2y%5E2
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!