- #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

- 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".

- Last Post

- Replies
- 0

- Views
- 3K

- Replies
- 1

- Views
- 2K

- Last Post

- Replies
- 0

- Views
- 5K

- Last Post

- Replies
- 2

- Views
- 4K

- Last Post

- Replies
- 6

- Views
- 105K

- Last Post

- Replies
- 1

- Views
- 8K

- Last Post

- Replies
- 1

- Views
- 2K

- Last Post

- Replies
- 0

- Views
- 3K

- Last Post

- Replies
- 2

- Views
- 2K

- Last Post

- Replies
- 1

- Views
- 16K