Q:

Create a matrix and find the product of each row and column using prod

0

 Create a matrix and find the product of each row and column using prod.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> mat = randi([1, 30], 2,3)

mat =

 11 24 16

 5 10 5

>> prod(mat)

ans =

 55 240 80

>> prod(mat,2)

ans =

 4224

 250

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now