Multiplication of rows in a single column

1 view (last 30 days)
Tino
Tino on 15 May 2019
Answered: madhan ravi on 15 May 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

Answers (2)

Guillaume
Guillaume on 15 May 2019
prod(yourvector)

madhan ravi
madhan ravi on 15 May 2019
x = prod(A)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!