How do i find the product of all the numbers in my matrix

1 view (last 30 days)
finding the product of all my numbers in 1:20

Answers (3)

Andrei Bobrov
Andrei Bobrov on 31 Oct 2018
prod(1:20)

madhan ravi
madhan ravi on 31 Oct 2018
Edited: madhan ravi on 31 Oct 2018
a=1:20;
prod(a)

Torsten
Torsten on 31 Oct 2018
sol = prod(1:20)

Community Treasure Hunt

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

Start Hunting!