element wise product matrix-vector
Mostra commenti meno recenti
I have a 200x5 matrix (Y) that includes 5 time series and a 5x1 vector of weights (w). For each t (row of the matrix), I need to compute the following element-wise product:
How can I do that?
Thank you
Risposta accettata
Più risposte (1)
Torsten
il 4 Apr 2020
0 voti
Y_t = bsxfun(@times,Y_t,w)
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!