Question: MATLAB exercises Create a script for the following exercises: 1. Let A and B be two 5 5 matrices with random entries between 0 and

MATLAB exercises Create a script for the following exercises: 1. Let A and B be two 5 5 matrices with random entries between 0 and 1. a. Test whether (A Is)(A -Is) A2 -I The best way to do this is to compute (A + Is) (A I5) (A2 - Is) and check if it is the zero matrix. b. Test whether (A + B)(A-B) = A2-B2. 2. Let A = magic (1000). Use the cornmand cputime (type help cputine for help) to find out how long it takes Matlab to compute A5, A10, A5, A20, and A25. Coment on the results. Note: A is a 1000 1000 matrix. DO NOT PRINT IT ON SCREEN
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
