필터 지우기
필터 지우기

Finding poinnt of interception between two lines on graph

조회 수: 3 (최근 30일)
Joe Bennet
Joe Bennet 2022년 3월 24일
댓글: Joe Bennet 2022년 3월 24일
I have the graph shown below, i want to find the point on the y axis where the red line (at a known value of x 'N(1)') intercepts the blue curve, but I keep getting an error that says "Error using matlab.internal.math.interp1, Sample points must be unique."
N= length(Kr);
Nn= zeros(N,1)+sr;
hold on
plot(Nn,Kr,"--","linewidth",2)
xlabel("Sr")
ylabel("Kr")
title("R6 Envelope")
X= interp1(s, K, Nn(1))
How can I fix this? Thanks
  댓글 수: 2
Torsten
Torsten 2022년 3월 24일
편집: Torsten 2022년 3월 24일
Remove the data points (Sr,Kr) where the envelope is not a function (i.e. the points with Sr = 1).
Joe Bennet
Joe Bennet 2022년 3월 24일
Thanks man! :)

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2022년 3월 24일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by