how can i mark a minimum point on function plot by using fplot/ezplot comman

y =
12753764076615830083770010361727/(158456325028528675187087900672*x^2) + (14262200079559523*x^2)/140737488355328
i am plotting it with respect to x
please help

 採用された回答

Walter Roberson
Walter Roberson 2018 年 9 月 27 日
Suppose you have calculated the positions of the extrema and stored them in pos_extrema, and stored the y value at that minima in miny, then:
>> fplot(y,[-2 2])
>> hold on
>> fplot(miny, double(pos_extrema(1))+[0 0], 'r*')
>> fplot(miny, double(pos_extrema(2))+[0 0], 'r*')
>> hold off
Hint: there are four positions where y have identical minima. Two of those locations are at complex-valued x -- so there are two real-valued x with the same minima.
You should be able to deduce more about the nature of the positions from the fact that you have x^2 in the formula but not x.

3 件のコメント

manish kumar
manish kumar 2018 年 9 月 27 日
position of the minimum point in my case is (o.9446,180.672). please write code for this mark.
miny = 180.672;
pos_extreme(1) =0.9446;
pos_extreme(2) = -0.9446;
Now use the code I posted.
manish kumar
manish kumar 2018 年 9 月 27 日
yes it works thank you sir!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by