Effacer les filtres
Effacer les filtres

Finding a zero location in a vector

4 vues (au cours des 30 derniers jours)
Janell Lopez
Janell Lopez le 25 Oct 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.

Réponse acceptée

the cyclist
the cyclist le 25 Oct 2017
interp1(Cl,alpha,0)

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by