Does MATLAB allow us to define a polynomial with unknown coeffcients?

2 vues (au cours des 30 derniers jours)
abc
abc le 5 Fév 2014
Hi does MATLAB allow us to define a polynomial with unknown coefficients? I know the function poly2sym where we enter the array of coefficients as an input. But if I do not have coefficients? I actually need to define two polynomials with unknown coefficients and then equate their product to 1 to find all the coefficients. I know only one of the coefficients in one of the polynomials.

Réponse acceptée

Walter Roberson
Walter Roberson le 5 Fév 2014
Modifié(e) : Walter Roberson le 6 Fév 2014
syms x
a = sym('a', [3 1]);
a(3)*x^2+a(2)*x+a(1)
  4 commentaires
Walter Roberson
Walter Roberson le 5 Fév 2014
Shruti, you must have caught my posting before I fixed it.
abc
abc le 6 Fév 2014
Thank you :)

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by