필터 지우기
필터 지우기

Matlab finding Real roots and Complex roots

조회 수: 66 (최근 30일)
Christina Himeda
Christina Himeda 2020년 6월 14일
댓글: Christina Himeda 2020년 6월 15일
I have this problems and I cant figure it out how to do, please help me towards it thank you
Use MATLAB to determine the real and complex roots of:
(a) f (x) = x3 − x2 + 2x − 2
(b) f (x) = 2x4 + 6x2 + 8
(c) f (x) = x4 − 2x3 + 6x2 − 2x + 5

채택된 답변

Abhivandan Pandey
Abhivandan Pandey 2020년 6월 14일
편집: Walter Roberson 2020년 6월 14일
Hi Christina,
I understand you want to calculate the roots of a polynomial using MATLAB. There's a function roots() which takes in coeffecients of a polynomial as a vector and returns the roots of the polynomial.
Here's the documentation link for the function:https://in.mathworks.com/help/matlab/ref/roots.html
Regards,
Abhivandan
  댓글 수: 2
Walter Roberson
Walter Roberson 2020년 6월 14일
I corrected your reference from root() to roots() . The link you posted, to roots(), is a good one for true polynomials with purely numeric coefficients.
There is also a function named root(), which is part of the symbolic toolbox, and can accept symbolic coefficients. It is not typically called by the user directly, and is much more often seen as a placeholder when solve() is used; https://www.mathworks.com/help/symbolic/sym.root.html
Christina Himeda
Christina Himeda 2020년 6월 15일
got it, thanks a lot about this

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by