答: 相邻两点x1、x2 曲线(1)相应的y值为y11、y12, 曲线(2)y相应的y值y21、y22, 若(y11-y21)与(y12-y22)符号相反或等于0,则x1或x2就是一个交叉点。 方法一: t=linspace(0,pi,300); x=sin(3*t).*cos(t); y1=2*x-0.5; y2=sin(3*t).*sin(t); len=length(t); p=y1-y2; x3=x...
y1=2*x1-0.5; t=0:0.01:pi; x2=sin(3*t).*cos(t); y2=sin(3*t).*sin(t); x=[]; y=[]; for i=1:length(x1) for j=1:length(x2) if abs(y1(i)-y2(j))<1e-2&abs(x1(i)-x2(j))<1e-2 x=[x,x1(i)]; y=[y,y1(i)]; end end end plot(x1,y1,x2,y2,x,y...