# How to plot the following surface

1 view (last 30 days)

Show older comments

How to plot the following surface:

Which type of parametrization is required to plot it... please give me a code

##### 0 Comments

### Accepted Answer

### More Answers (2)

Sam Chak
on 10 Jun 2022

Sometimes I have troubles visualizing the geometry. Can I plot like this? It should look like an inverted cone.

x = linspace(-sqrt(2), sqrt(2), 41);

y = x;

[X, Y] = meshgrid(x, y);

Z = sqrt(X.^2 + Y.^2) + 1;

surf(X, Y, Z)

##### 4 Comments

Sam Chak
on 10 Jun 2022

### See Also

### Categories

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!