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

1 次查看(过去 30 天)
finding the product of all my numbers in 1:20

回答(3 个)

Andrei Bobrov
Andrei Bobrov 2018-10-31

madhan ravi
madhan ravi 2018-10-31
编辑:madhan ravi 2018-10-31
a=1:20;
prod(a)

Torsten
Torsten 2018-10-31
sol = prod(1:20)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by