I need the value of a changing variable at a specific value
3 ビュー (過去 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!