How to find intersection point between plot (x,aww) and plot (xt,yt)
조회 수: 7 (최근 30일)
이전 댓글 표시
x=[1:100];
x=x(ones (1,100),:);
aww=zeros(100);
for i=1:100;
j=1:100;
y=linspace(1,10,100);
aww(i,j)=y(1,i);
end
plot(x,aww);
xlim([-10 110]);
ylim([-1 15]);
hold on
xt=20:80;
yt=ones(1, length(xt))*5;
plot (xt,yt);
댓글 수: 0
답변 (1개)
Ameer Hamza
2020년 11월 24일
See this FEX package: https://www.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!