I need the value of a changing variable at a specific value
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
clc
clear
close all
AR = 5;
Cl = [0:0.01:1.7];
Cd = 0.04 + (1.26/(pi*AR))*Cl.^2;
LDR = Cl./Cd;
max(LDR)
plot(Cd, Cl,'r')
grid on
xlabel('Cd')
ylabel ('Cl')
I need the value of Cl at the point LDR is at its max value
I have no idea how to find this
0 commentaires
Réponses (1)
KALYAN ACHARJYA
le 14 Avr 2022
Modifié(e) : KALYAN ACHARJYA
le 14 Avr 2022
The value is
Cl_val=Cl(find(LDR==max(LDR)))
0 commentaires
Voir également
Catégories
En savoir plus sur Logical 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!