MATLAB Answers

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

3 views (last 30 days)
Nicholas Cappellino
Nicholas Cappellino on 31 Oct 2018
Edited: madhan ravi on 31 Oct 2018
finding the product of all my numbers in 1:20

  0 Comments

Sign in to comment.

Answers (3)


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

  0 Comments

Sign in to comment.


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

  0 Comments

Sign in to comment.

Sign in to answer this question.