ellipsoid with surf command?
1 view (last 30 days)
Show older comments
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)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!