How to graph the function f(x,y)=9 - x^2 - 9*y^2 in 3D

2 views (last 30 days)
How i can graph the function f(x,y)=9 - x^2 - 9*y^2 in 3D , please help me guys. i am out of ideas

Answers (1)

KSSV
KSSV on 13 Jun 2020
m = 100 ; n = 100 ;
x = linspace(0,1,m) ;
y = linspace(0,1,n) ;
[X,Y] = meshgrid(x,y) ;
Z = 9-X.^2-9*Y.^2 ;
surf(X,Y,Z)

Tags

Community Treasure Hunt

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

Start Hunting!