Azzera filtri
Azzera filtri

Vectorise a matrix multiplication chain

1 visualizzazione (ultimi 30 giorni)
Divij Gupta
Divij Gupta il 22 Giu 2021
Risposto: KSSV il 22 Giu 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}?

Risposte (1)

KSSV
KSSV il 22 Giu 2021
Read about the function prod.

Categorie

Scopri di più su Operating on Diagonal Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by