I need the value of a changing variable at a specific value

조회 수: 1 (최근 30일)
Nicholas DeGarmo
Nicholas DeGarmo 2022년 4월 14일
편집: KALYAN ACHARJYA 2022년 4월 14일
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

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2022년 4월 14일
편집: KALYAN ACHARJYA 2022년 4월 14일
The value is
Cl_val=Cl(find(LDR==max(LDR)))

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by