フィルターのクリア

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 Center および File ExchangeInterpolation についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by