Vectorise a matrix multiplication chain

1 vue (au cours des 30 derniers jours)
Divij Gupta
Divij Gupta le 22 Juin 2021
Réponse apportée : KSSV le 22 Juin 2021
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}?

Réponses (1)

KSSV
KSSV le 22 Juin 2021
Read about the function prod.

Catégories

En savoir plus sur Operating on Diagonal Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by