ezplot函数可以方便的画出隐函数的图像,例如:
ezplot(@(x,y) x^2/9+y^2/4-1,[-3 3 -2 2]);
或者
ezplot('x^2/9+y^2/4-1',[-3 3 -2 2]);
在-3<x<3, -2<y<2区域画出椭圆方程的图像。