Is it possible to multiply a 3x3 matrix by the COLUMNS of a 3x3 matrix without using a loop and store the results in a new 3x3matrix?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
For example if I have the matrix z = [1 2 3; 1 2 3; 1 2 3] and I have another matrix t = [ 2 2 2; 2 2 2; 2 2 2]. I want to multiply z by the first, second and third row of t. So by the end of this process I should have three vectors of the size 3x1 that should be placed right next to each other to create a 3x3 matrix. I have already done this using a for loop, but I was wondering if there was a faster way to do this because the matlab program I am building, I am multiplying a 3x3 matrix by the columns of a 3 x 1000 matrix.
0 Commenti
Risposte (1)
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!