ellipsoid with surf command?

1 view (last 30 days)
Kuatra Patil
Kuatra Patil on 20 Apr 2019
Commented: Walter Roberson on 21 Apr 2019
obviously there are some complex numbers because of root in this code, but how can we plot ellipsoid using functions in the library?
[x,y] = meshgrid(1:0.5:10,1:20);
z = sqrt((3-x.^2-y.^2)/4);
surf(x,y,z)

Answers (0)

Community Treasure Hunt

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

Start Hunting!