Vectorise a matrix multiplication chain
Mostrar comentarios más antiguos
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}?
Respuestas (1)
KSSV
el 22 de Jun. de 2021
0 votos
Read about the function prod.
Categorías
Más información sobre Linear Algebra en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!