필터 지우기
필터 지우기

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by