How to Multiplying matrices
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Yanuar Rizki Pahlevi
le 5 Sep 2020
Commenté : David Hill
le 6 Sep 2020
Hi, i need help.
how can I multplying matrices 1x3 with 3x1 with variable only for it element.
as example, I want to multiply [1 2 3 4 5] with [x^0 x^n-4 x^n-3 x^n-2 x^n-1]
I have done it with fliplr and poly2sym, but, is there any way without using poly2sym at all?
0 commentaires
Réponse acceptée
David Hill
le 5 Sep 2020
syms x n;
a=[1,2,3,4,5];
b=[x; x^n-4; x^n-3; x^n-2; x^n-1];
c=a*b;
4 commentaires
Plus de réponses (1)
Yanuar Rizki Pahlevi
le 5 Sep 2020
2 commentaires
David Hill
le 5 Sep 2020
You must mean 5+4*x+3*x^2+2*x^3+x^4. Why not just use charateristic polynomial functions?
Voir également
Catégories
En savoir plus sur Polynomials dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!