(Solved):
Write a MATLAB script that manually calculates the multiplication of two matrices of any size. Whe ...
Write a MATLAB script that manually calculates the multiplication of two matrices of any size. Whether the calculation can take place needs to be checked. MATLAB's built in matrix multiplication cannot be used except to check the final answers. The following must be submitted to Canvas: Submission Items - Results of the following operations: 1. \( \left[\begin{array}{ccc}7 & 16 & 3 \\ 42 & 9 & 27\end{array}\right]\left[\begin{array}{cc}5 & 9 \\ 3 & -5 \\ 5 & -3\end{array}\right] \) 2. \( \left[\begin{array}{ccc}4 & 6 & 28 \\ -10 & 2 & 43 \\ 59 & 12 & 2\end{array}\right]\left\{\begin{array}{l}2 \\ 7 \\ 3\end{array}\right\} \) 3. \( \left[\begin{array}{cccc}2 & 4 & 6 & 10\end{array}\right]\left\{\begin{array}{c}3 \\ 6 \\ 12 \\ 15\end{array}\right\} \) - A well-commented MATLAB script following the format provided on Canvas
clear all; clc; % code for user input matrices a = input('enter the number of rows in matrix A: '); b = input('enter the number of columns in matrix A: '); for i = 1:a for j =