How to extract specific data from the data files?

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

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일

0 개 추천

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')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

2020년 10월 5일

댓글:

2020년 10월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by