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
KSSV 2021 年 6 月 22 日

0 投票

Read about the function prod.

カテゴリ

ヘルプ センター および File ExchangeLinear Algebra についてさらに検索

質問済み:

2021 年 6 月 22 日

回答済み:

2021 年 6 月 22 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by