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

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

Answers (3)

Andrei Bobrov
Andrei Bobrov on 31 Oct 2018

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)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!