フィルターのクリア

Finding a zero location in a vector

4 ビュー (過去 30 日間)
Janell Lopez
Janell Lopez 2017 年 10 月 25 日
回答済み: the cyclist 2017 年 10 月 25 日
Hi, I have to find the zero-lift angle of attack for a given airfoil. This means that I have a vector of alpha values and a vector of lift coefficient values. I need to find at what alpha value the lift coefficient is 0. Here are the two vectors:
alpha=[-5:10]
Cl=[-0.3725 -0.2525 -0.1324 -0.0123 0.1078 0.2279 0.3479 0.4679 0.5876 0.7073 0.8267 0.9458 1.0647 1.1832 1.3014 1.4191]
How do I find the value of alpha where Cl is equal to 0? I'm assuming there is some kind of interpolation I could do but I have never interpolated in MATLAB before, the interp1 document page confused the heck out of me, and any help would be appreciated.

採用された回答

the cyclist
the cyclist 2017 年 10 月 25 日
interp1(Cl,alpha,0)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by