matlab A1 1 1 4 5 and B1 2 3 4 5 What is the matrix multipli

matlab

A=[1 1 1 4 5] and B=[1 2 3 4 5] What is the matrix multiplication of these two vectors? [1 2 3 16 25] [1 2 3 16 25]\' \'inner matrix dimensions must agree\' [25 16 3 2 1]

Solution

>> As, Matrix A = [ 1 1 1 4 5 ]

It has 1 row and 5 columns

So, it is of order 1 X 5

>> Matrix B = [ 1 2 3 4 5 ]

It also has 1 row aand 5 columns\'\'

So, It is also of order 1 X 5

>> Now, When we try to multiply A X B ,

then order will be [1 X 5 ] X [ 1 X 5 ]

As, for multiplication, no of columns in 1st matrix to multiply must be equal to no. of rows in 2nd matrix of multiplication.

>> So, Here, it is not possible to multiply Matrix A & B

because, inner matrix dimensions must agree for multiplication to be possible ....

Hence, OPTION (C) .........

matlab A=[1 1 1 4 5] and B=[1 2 3 4 5] What is the matrix multiplication of these two vectors? [1 2 3 16 25] [1 2 3 16 25]\' \'inner matrix dimensions must agre

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site