# add1 - x,y(e x y(f A x y(g x y 3(Matlab Create two 3 × 3...

This preview shows page 1. Sign up to view the full content.

Additional Problems 1 1.(Matlab) Construct 4 × 3 matrix A = ( a ij ) whose entries are prime num- bers with increasing order. For example, the entries in the ﬁrst and second row of A are 2 , 3 , 5 and 7 , 11 , 13, respectively. Write down the Matlab command to generate the following result. Copy and paste your input and output. (a) a 23 (b) the third column of A (c) the fourth row of A 2.(Matlab) For x = [2; 1; 3] , y = [5; 2; 8] and A = [1 , 6 , 2; 2 , 1 , 7], ﬁnd the outputs of the following commands. In case the command does not correctly execute, explain why. (a) x + y (b) x + A (c) x 0 + y (d) [
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: x,y ] (e) [ x ; y ] (f) A-[ x ; y ] (g) [ x ; y ] 3.(Matlab) Create two 3 × 3 matrices by A = rand(3 , 3) ,B = rand(3 , 3). (a) Compute A + B and B + A . (b) Compute AB and BA . (c) What can you conclude from the results of (a) and (b)? (d) We have the formula ( x + y ) 2 = x 2 +2 xy + y 2 that works for all real number x and y. Check if the same formula hold for your matrix, i.e. ( A + B ) 2 = A 2 + 2 AB + B 2 . If not, ﬁnd the correct the formula for ( A + B ) 2 . 1...
View Full Document

## This note was uploaded on 07/17/2008 for the course MATH 571 taught by Professor Kim during the Spring '08 term at Ohio State.

Ask a homework question - tutors are online