Im trying to graph f(x,y)=x+2y-2 and g(x,y)x^2+4y^2-4 on the same graph

2 views (last 30 days)
I have been having difficulty understanding the process of graphing while learning matlab this season. I need help simply just plotting them.

Accepted Answer

Sambit Supriya Dash
Sambit Supriya Dash on 28 Nov 2021
Edited: Sambit Supriya Dash on 28 Nov 2021
fsurf(@(x,y) x+(2*y)-2)
hold on
fsurf(@(x,y) (x^2)+(4*(y^2))-4)
hold off

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!