- #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 should upgrade or use an alternative browser.

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

- Replies
- 5

- Views
- 336

MATLAB
How to plot data in MATLAB?

- Replies
- 2

- Views
- 964

- Replies
- 4

- Views
- 910

MATLAB
Tidying up MATLAB outputs

- Replies
- 4

- Views
- 485

- Replies
- 1

- Views
- 874

- Replies
- 9

- Views
- 1K

- Replies
- 1

- Views
- 664

- Replies
- 5

- Views
- 407

- Replies
- 2

- Views
- 1K

MATLAB
MATLAB-Scilab help forums?

- Replies
- 6

- Views
- 728