matlab提供了画二维隐函数表示的图像的函数ezplot():
ezplot(FUN) 在默认区间 -2*PI < X < 2*PI 且 -2*PI < Y < 2*PI上绘制 FUN(X,Y) = 0表示的图像。
示例如下:绘制心形线 x^2+y^2+2*x=2*sqrt(x^2+y^2)
>> ezplot('x^2+y^2+2*x=2*sqrt(x^2+y^2)')
用ezplot就行了,比如ezplot('x^2+y^2+2*x=2*sqrt(x^2+y^2)')
hallowwar你怎么知道我没运行……废话少说,插图上来
ezplot('x^2+y^2+2*x=2*(x^2+y^2)^(1/2)',[0,pi])
其中,[0,pi]是画图区间,可有可无
回复: hallowwar,我已经运行过了,才发出来的
syms x y z
x=1:5;y=1:5;
ezplot('x^2+y^2+2*x=2*sqrt(x^2+y^2)')
楼上两位,就这句命令能画出图来吗?回答问题前先运行一下吧。