Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

please help me out with the commands in MatLab to get the right data for question #2. image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions