How to Multiplying matrices
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yanuar Rizki Pahlevi
am 5 Sep. 2020
Kommentiert: David Hill
am 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 Kommentare
Akzeptierte Antwort
David Hill
am 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 Kommentare
Weitere Antworten (1)
Yanuar Rizki Pahlevi
am 5 Sep. 2020
2 Kommentare
David Hill
am 5 Sep. 2020
You must mean 5+4*x+3*x^2+2*x^3+x^4. Why not just use charateristic polynomial functions?
Siehe auch
Kategorien
Mehr zu Polynomials finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!