I need the value of a changing variable at a specific value
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
KALYAN ACHARJYA
2022-4-14
编辑:KALYAN ACHARJYA
2022-4-14
The value is
Cl_val=Cl(find(LDR==max(LDR)))
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!