フィルターのクリア

Point of intersection of two plotted column vectors

1 回表示 (過去 30 日間)
Sandura Shumba
Sandura Shumba 2020 年 5 月 23 日
コメント済み: Sandura Shumba 2020 年 5 月 26 日
Hi, I am very new to matlab and i was hopping someone could assist me with this simple problem I have two plotted lines FAR and FRR. FAR and FRR are two column vectors. I simply need to find the point of intersection, i just need the value where the intersection happens. Could someone please assist. My code is as follows
FRR FAR
1 0
0.984375 0.005331753555
0.953125 0.06575829384
0.8828125 0.1279620853
0.828125 0.1800947867
0.78125 0.2458530806
0.703125 0.3382701422
0.46875 0.4502369668
0.265625 0.5805687204
0.0859375 0.7357819905
plot(FAR);
hold;
plot(FRR);

採用された回答

KSSV
KSSV 2020 年 5 月 23 日
編集済み: KSSV 2020 年 5 月 25 日
This your function.....go for it.
data = [1 0
0.984375 0.005331753555
0.953125 0.06575829384
0.8828125 0.1279620853
0.828125 0.1800947867
0.78125 0.2458530806
0.703125 0.3382701422
0.46875 0.4502369668
0.265625 0.5805687204
0.0859375 0.7357819905] ;
[m,n] = size(data) ;
FRR = data(:,1) ;
FAR = data(:,2) ;
L1 = [1:m ; FRR'] ;
L2 = [1:m ; FAR'] ;
P = InterX(L1,L2) ;
figure
hold on
plot(L1(1,:),L1(2,:))
plot(L2(1,:),L2(2,:))
plot(P(1),P(2),'*k')
  4 件のコメント
KSSV
KSSV 2020 年 5 月 25 日
編集済み: KSSV 2020 年 5 月 25 日
I have edited the answer check it. You need to download the function interX and save it in your working folder.
Sandura Shumba
Sandura Shumba 2020 年 5 月 26 日
Thank you very much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by