匿名用户
1级
2014-05-07 回答
图解法啊?把以下程序copy到edit中,即
>> edit
%__________________
ezplot('x.^3-x.^2=y.^2-y ',[-1 4 -2 2])
hold on
ezplot('x.^2+y.^2=3*x*y.^2 ',[-1 4 -2 2])
grid on
[X1,Y1]=ginput
[X2,Y2]=ginput
%________________________
运行后(F5键),在图形界面出现十字,把十字的中心对准曲线的交叉点,鼠标左键单击,再按回车键,得到X1和Y1的坐标;接着又出现十字,重复以上步骤,得到X2和Y2的坐标。
如果还要更精确,把坐标精细化。如
%__________________
clf
ezplot('x.^3-x.^2=y.^2-y ',[-1 2 -1.5 1.5])
hold on
ezplot('x.^2+y.^2=3*x*y.^2 ',[-1 2 -1.5 1.5])
grid on
[X1,Y1]=ginput
[X2,Y2]=ginput
%________________________
运行结果:
X1 = 0.40211132437620
Y1 = -0.8905109489