adplus-dvertising
frame-decoration

Question

What is the output of the following code?
A=[1:3:7;2:3:8;3:3:9]; prod(A,2)’

a.

28 80 162

b.

20
80
162

c.

Error

d.

NaN

Posted under MATLAB

Answer: (a).28 80 162

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following code?