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 –
MATLAB Related Interview Questions
|Basic Simulation Interview Questions||C Interview Questions|
|Embedded Systems Interview Questions||Linux Embedded systems Interview Questions|
|LabView Interview Questions||Java Interview Questions|
|Digital image processing Interview Questions||XLink Interview Questions|
|Embedded C Interview Questions|
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.