Matrix Multiplication
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Basically I have a problem with multiplying my matrices and have No idea howto solve it 1st. Matrix x(t) = sin( 2*pi*t/3) for t = -20:0.01:20 2nd. Matrix N=4000 w=hamming(N)
How do I multiply these two togehter (element by element didnt work when I transposed X and then .*'d it with w)
0 Commenti
Risposte (2)
Fangjun Jiang
il 16 Set 2011
use size() function to get the size of your matrix. You'll find out the size of your two matrices are slightly different.
0 Commenti
Eric
il 16 Set 2011
2 Commenti
Fangjun Jiang
il 16 Set 2011
You need to understand the difference between matrix multiplication and element multiplication. A=rand(3,1);B=rand(3,1);C=A.*B;D=A*B';
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!