Multiplication of rows in a single column

1 visualizzazione (ultimi 30 giorni)
Tino
Tino il 15 Mag 2019
Risposto: madhan ravi il 15 Mag 2019
Hi
Please how do I multiply the rows in a single column
I have a matrix with the size 200 1
thanks for your help
for instance
A
1
2
3
4
6
6.
.
.
n
x = 1 * 2 * 3 * 4 * 6 * 6 ...........n
Thanks in advance
Tino

Risposte (2)

Guillaume
Guillaume il 15 Mag 2019
prod(yourvector)

madhan ravi
madhan ravi il 15 Mag 2019
x = prod(A)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by