Question: please help me out with the commands in MatLab to get the right data for question #2. 1. Use MATLAB to generate random 4 x
1. Use MATLAB to generate random 4 x 4 matrices A and B. For each of the following, compute A1, A2, A3, and A4 as indicated and determine which of the matrices are equal (you can use MATLAB to test whether two matrices are equal by computing their difference) (a) A1 = A * B, A2 = B * A, A3 = (A' * B'), A4 = (B' * A') (b) A1 = A' * B', A2 = (A * BY, A3 = B' * A', A4 = (B * A) (c) A1 = inv(A + B), A2 = inv(A) * inv(B), A3 = inv(B * A), A4 = inv(B) * inv(A) (d) A1 = inv((A * B)'), A2 = inv(A' * B), A3 = inv(A') * inv(B'), A4 = (inv(A) * inv(B))' 2. Set n = 200 and generate an n x n matrix and two vectors in R, both having integer entries, by setting A = floor(10* rand(n)); b = sum(A')'; z=ones(n,1); (Since the matrix and vectors are large, we use semicolons to suppress the printout.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
