Vectorise a matrix multiplication chain
古いコメントを表示
I want to find a non-loop way to do the following:
for c = 1:q
h = h*Z{c};
end
Basically, how can I vectorise Z{1}*Z{2}*...*Z{q}?
回答 (1 件)
KSSV
2021 年 6 月 22 日
0 投票
Read about the function prod.
カテゴリ
ヘルプ センター および File Exchange で Linear Algebra についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!