フィルターのクリア

Polynomial min/max using coefficients vector?

2 ビュー (過去 30 日間)
Steve
Steve 2011 年 10 月 12 日
Hello Experts,
Consider I have polynomial and a vector p with it's coefficients. What function in Matlab gets such vector p and computes max and minimum.
Thanks a lot in advance!
I need both maximum and minimum.

採用された回答

Thomas
Thomas 2011 年 10 月 12 日
Suppose you have a polynomial
x^3 - 2*x - 5
c=sym2poly(x^3 - 2*x - 5) will give you the vector coefficients:
c =
1.00 0 -2.00 -5.00
minmax(sym2poly(x^3 - 2*x - 5))
ans =
-5.00 1.00
minmax(sym2poly(polynomial)) will give you the minimum and maximum of the coeffiecients.
Hope this was useful
  2 件のコメント
Steve
Steve 2011 年 10 月 12 日
Thank you very much!!!!
It was my pleasure to get your answer, informative and smart!
Steve
Steve 2011 年 10 月 12 日
I meant the extremum...sorry but maybe you didn't expressed myself right.

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by