Finding the value of the below curve

3 ビュー (過去 30 日間)
Amy Topaz
Amy Topaz 2022 年 4 月 14 日
回答済み: Sam Chak 2022 年 4 月 14 日
How to find the maximum value of the below curve:
z1 = [0.00008 0.009]';
a11 = -4:0.001:4;
k1 = (atan(((0.01/2 + a11)./z1) + atan((0.01/2 - a11)./z1)));
plot(a11,k1(1,:),'-k',a11,k1(2,:),'-r')
  1 件のコメント
KSSV
KSSV 2022 年 4 月 14 日
Did you try max function?

サインインしてコメントする。

回答 (1 件)

Sam Chak
Sam Chak 2022 年 4 月 14 日
Since the curves are arctangent functions, the max values can be found at the boundary, in this case, that is a11 = 4.
It is important to know that the limit at infinity of the arctangent function is .
max_idx = length(a11)
k11_max = k1(1,:)(max_idx)
k12_max = k1(2,:)(max_idx)
k11_max = 1.5708
k12_max = 1.5685

カテゴリ

Help Center および File ExchangeFit Postprocessing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by