Filter löschen
Filter löschen

Finding a zero location in a vector

4 Ansichten (letzte 30 Tage)
Janell Lopez
Janell Lopez am 25 Okt. 2017
Beantwortet: the cyclist am 25 Okt. 2017
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.

Akzeptierte Antwort

the cyclist
the cyclist am 25 Okt. 2017
interp1(Cl,alpha,0)

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by