In: Advanced Math
generate the following matrices with given rank and verify with the rank command. Include the Matlab sessions in your report as indicated.
A) is 8x8 with rank 3.
B) is 6x9 with rank 4.
C) is 10x7 with rank 5 .
>> A = [1 0 0 0 0 0 0 0; 0 1 0 0 0 0 0 0; 0 0 1 0 0 0 0 0; 2 0 0 0 0 0 0 0; 0 2 0 0 0 0 0 0; 0 0 2 0 0 0 0 0; 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0]
A =
1 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0
2 0 0 0 0 0 0 0
0 2 0 0 0 0 0 0
0 0 2 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
>> rank(A)
ans =
3
>> B = [1 0 0 0 0 0 0 0 0; 0 2 0 0 0 0 0 0 0; 0 0 1 0 0 0 0 0 0; 0 0 0 1 0 0 0 0 0; 2 0 0 0 0 0 0 0 0; 0 1 0 0 0 0 0 0 0]
B =
1 0 0 0 0 0 0 0 0
0 2 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0
2 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0
>> rank(B)
ans =
4
>> C = [1 0 0 0 0 0 0; 1 1 0 0 0 0 0; 1 1 1 0 0 0 0; 1 1 1 1 0 0 0; 1 1 1 1 1 0 0; 1 2 3 4 5 0 0; 1 1 2 2 3 0 0; 0 0 0 0 1 0 0; 1 0 1 0 0 0 0; 2 2 2 2 2 0 0]
C =
1 0 0 0 0 0 0
1 1 0 0 0 0 0
1 1 1 0 0 0 0
1 1 1 1 0 0 0
1 1 1 1 1 0 0
1 2 3 4 5 0 0
1 1 2 2 3 0 0
0 0 0 0 1 0 0
1 0 1 0 0 0 0
2 2 2 2 2 0 0
>> rank(C)
ans =
5
We are unable to upload MatLab session file here because there is no option to upload a file like .mat
Ask if you have any quarries. Thank you.