Write a matlab program to multiply two matrices together do


You need to prepare MATLAB code to multiply two matrices.

Program: Write a MATLAB program (script) to multiply two matrices together. Do not use the MATLAB matrix multiplication function, A*B.

Make the program general so that it will work with matrices of any dimension. Check that the inner dimensions of the matrices are the same before performing the multiplication.

If the inner dimensions do not match, display an error and stop.

You can use the MATLAB function size() to get the number of rows and columns in the matrices to be multiplied. Use the input() function to get the matrix elements.

Matrices will be entered in the form [1 2 3;4 5 6;7 8 9;...].

Be sure to include comments. Comments should be included in the program to explain your calculations and program.

Request for Solution File

Ask an Expert for Answer!!
MATLAB Programming: Write a matlab program to multiply two matrices together do
Reference No:- TGS0949858

Expected delivery within 24 Hours