This question is closed. Reopen it to edit or answer.
3d dimensional surface
1 view (last 30 days)
I'm trying to plot a 3d dimensional surface. The function given is The code below is the one I'm using.
v = [-2:0.1:2];
w = [-2:0.1:2];
[X,Y] = meshgrid(v,w);
Z = 6*X^2-4*X^2*Y^2;
And this is the output in MATLAB:
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