- #1

- 590

- 0

can someone please help me plot 3d graphs on MATLAB, for example

z=x

^{2}+2x+y

^{2}-y

how can i input x,y,z so that MATLAB will give me the surface graph of this function

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- MATLAB
- Thread starter Dell
- Start date

- #1

- 590

- 0

can someone please help me plot 3d graphs on MATLAB, for example

z=x

how can i input x,y,z so that MATLAB will give me the surface graph of this function

- #2

- 243

- 1

[X Y] = meshgrid(linspace(-10,10));

z=X.^2+2.*X+Y.^2-Y;

mesh(X,Y,z)

Alternatively use "surf" instead of "mesh".

Share: