Create a matrix and find the product of each row and column using prod
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:2| Question number:32.2
All Answers
total answers (1)
>> 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