Question: 1 . ( 1 0 pts ) Write a script that reads in the matrices from Homework 1 data.xlsx Here is a good MATLAB command
pts Write a script that reads in the matrices from Homework data.xlsx
Here is a good MATLAB command to use:
A readmatrixHomework data.xlsx'Range',a:c
pts Do the following MATLAB matrix operations using only for loops meaning no usage of MATLABs colon : to index through matrices
a Multiply: Proba AA
b Multiply: Probb CC
c Transpose: Probc C
d ElementbyElement Square: Probd B
e Matrix Exponential: Probe expC
pts Subtract your looped solution from MATLABs builtin command solution for each case. Use MATLABs norm command to compute a scalar that is measure of the difference between the looped and MATLAB solutions.
pts Use MATLABs tic and toc commands to measure execution time so you can see how your looped solution time compares with the MATLAB builtin command time. Suggest typing in help tic in the MATLAB command window to see a good example of how to use the command.
pts Use MATLABs disp and sprintf commands to create a formatted table output for the norm and timing calculations. Output should look somewhat like the following:
MATLAB LOOPS Time Ratio
Solution norm times times LOOPS:MATLAB
a e
b e
c e
d e
e e
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
