Azzera filtri
Azzera filtri

Finding a zero location in a vector

4 visualizzazioni (ultimi 30 giorni)
Janell Lopez
Janell Lopez il 25 Ott 2017
Risposto: the cyclist il 25 Ott 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.

Risposta accettata

the cyclist
the cyclist il 25 Ott 2017
interp1(Cl,alpha,0)

Più risposte (0)

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by