Multiplication of rows in a single column

1 vue (au cours des 30 derniers jours)
Tino
Tino le 15 Mai 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

Réponses (2)

Guillaume
Guillaume le 15 Mai 2019
prod(yourvector)

madhan ravi
madhan ravi le 15 Mai 2019
x = prod(A)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by