Question: Using MATLAB loops and the size() function, create a MATLAB script that will multiply 2 matrices. Note that size(A) will return a row vector containing
Using MATLAB loops and the size() function, create a MATLAB script that will multiply 2 matrices.
Note that size(A) will return a row vector containing the dimensions of a matrix A. Thus, you need to code a statement such as [rowsize, colsize] = size(A).
You may not multiply matrices A and B just using A * B; you MUST use matrix indexing to compute the matrix product as if you were multiplying the matrices using pencil and paper! 
j cb Start Ask the user for 2 matrices, save as A and B Determine the row and column numbers of A and B, save as ra, ca, rb, cb respectively k for i 1:ra ica. Display C End
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
