Finding a zero location in a vector

4 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by