element wise product matrix-vector
古いコメントを表示
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
採用された回答
その他の回答 (1 件)
Torsten
2020 年 4 月 4 日
0 投票
Y_t = bsxfun(@times,Y_t,w)
カテゴリ
ヘルプ センター および File Exchange で Aerospace Blockset についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!