MATLAB Matrix Multiplication - MATLAB

What is MATLAB Matrix Multiplication?

consider matrices A and B. If A is an m x n matrix and B is an n x p matrix, they can be multiplied together to provide an m x n matrix C. Matrix multiplication is possible only if the number of columns n in A is equal to the number of rows n in B.

In matrix multiplication, the elements of the rows inside the first matrix are multiplied with corresponding columns in the second matrix.

each element in the (i, j)th position, in the resulting matrix C, is the summation of the products of elements in ith row of first matrix with the corresponding element in the jth column of the second matrix.

Matrix multiplication in MATLAB is performed by way of using the * operator.


Create a script file with the following code –

When you run the file, it displays the following result –

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status