フィルターのクリア

How to extract specific data from the data files?

1 回表示 (過去 30 日間)
hj lee
hj lee 2020 年 10 月 5 日
コメント済み: hj lee 2020 年 10 月 5 日
Hello,
CL = [ 0.572526 0.601916 0.631107 ];
CD = [ 0.024868 0.025337 0.025902 ];
How to output the value of CD when CL is 0.6?
I want to use linear interpolation but I don't know how to do.
Thakns for reading.
  2 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 10 月 5 日
What model does the data follow? Linear? Polynomial? Or is there some other nonlinear relation between CL and CD?
hj lee
hj lee 2020 年 10 月 5 日
Both are okay! thanks for comment!

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

採用された回答

KSSV
KSSV 2020 年 10 月 5 日
編集済み: KSSV 2020 年 10 月 5 日
iwant = interp1(CL,CD,0.6)
This is the procedure:
CL = [ 0.572526 0.601916 0.631107 ];
CD = [ 0.024868 0.025337 0.025902 ];
xi = 0.6 ;
yi = interp1(CL,CD,xi) ;
plot(CL,CD)
hold on
plot(xi,yi,'*r')
  1 件のコメント
hj lee
hj lee 2020 年 10 月 5 日
That's perfect answer thanks!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by