Question

In: Advanced Math

generate the following matrices with given rank and verify with the rank command. Include the Matlab...

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 .

Solutions

Expert Solution

>> 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.


Related Solutions

Use MATLAB to nd the products AB and BA for the following matrices:
Use MATLAB to nd the products AB and BA for the following matrices:
Question: include the MATLAB output and commands used with each problem Generate two random 10 ×...
Question: include the MATLAB output and commands used with each problem Generate two random 10 × 10 matrices with numbers between -10 and 10. This can be done with >> A = randi([-10,10],10,10) >> B = randi([-10,10],10,10) 1.     with MATLAB to determi whether A and B are invertible matrices . 2.     If A is invertible, use MATLAB to show that A-1A = I 3.     Determi whether (AB)-1 = B-1A-1 4.     Determin whether (AT)-1 = (A-1)T 5.     Determe whether (A3)-1 = (A-1)3 6.     Determi whether (A +...
a. Using Matlab scripts create the following matrices (???1 and ???2) ???1 = [ 3 2...
a. Using Matlab scripts create the following matrices (???1 and ???2) ???1 = [ 3 2 −3 6 7 4 3 −6 7 ], ???2 = [ 2 1 7 3 3 9 −6 6 1 ]    b. Write code to add the second row of ???1 to the third row of ???2 and store results in the first row of ???1. c. Write code to add the second column of ???1 with the third column of ???2 and...
Write a matlab code for given task Use your ‘sin’ or ‘cos’ function to generate a...
Write a matlab code for given task Use your ‘sin’ or ‘cos’ function to generate a sinusoid wave having two components as f1 = 3kHz and f2 = 5kHz and then sample it with fs = 10kHz. Calculate its fft with zero frequency component in the middle. Plot it on a properly scaled w-axis. Specify if there is aliasing or not? If there is aliasing specify which component is casing the aliasing
1. Generate a nmap command with the following options: - Polite Scan - Store the results...
1. Generate a nmap command with the following options: - Polite Scan - Store the results in a grep-able format (use the name: targets) - The 25 top ports - Do not ping the scanned targets - Target network: 192.168.10.0/24 2. The tool which allows you to script up nmap scans such as vulnerability scans, network discovery, exploitation, etc. is called the ____ ____ ____ (NSE).
The command C = max(A,B) compares corresponding values in the A and B matrices assuming they...
The command C = max(A,B) compares corresponding values in the A and B matrices assuming they are the same size. The problem is that MATLAB’s native version does not tell you from which matrix it found the largest value. Write a new function (in MATLAB) [C,from_which] = max_new(A,B) that also output a matrix, the same size as the inputs, with either 1’s or 2’s depending on from which matrix the larger value was found. Include a live script that tests...
Commands are to be typed in the Command Window in MATLAB [Those preceding the symbol>> are...
Commands are to be typed in the Command Window in MATLAB [Those preceding the symbol>> are the commands] 16.3 Matrix operations >>a=[1 2 3;4 5 6;7 8 9] >>b=[1 0 0;1 0 1;0 0 1] Assigning: >>a=b(2,:) Transposing: >>[1;2;3] >>[1;2;3]' Incrementing: >>Tempk=a+273.15 Scaling: >>L=a*2.5 Adding & subtracting: >>[1 2 3;4 5 6]-[8 7 6;4 2 0] Repeating: >>sqrt(a) >>sqrt(b) Operating term by term: >>[1 3;5 8].*[0 1;4 2] >>[1 3;5 8]*[0 1;4 2] Creating matrix efficiently >>m=[364;297]; >>n=[3,6,4;2,9,7]; >>p(1,1)=3; >>q=[2:2:200]...
Given two 2x2 matrices: M=1     21     1,N=-1       2     1   -1 (a).Verify multiplication of M x N...
Given two 2x2 matrices: M=1     21     1,N=-1       2     1   -1 (a).Verify multiplication of M x N mod 26 = N x M mod 26 = I (identity matrix) (b). Use Hill cipher to encrypt the message EXAMS
Use one MATLAB statement to generate each of the following scalars and vectors. (These parts are...
Use one MATLAB statement to generate each of the following scalars and vectors. (These parts are sequential) a.) Generate the vector x=(sin5,sin10,sin15,...,sin200) but dont print b.)Find the Max value in X and which index has this value. Print both the index and the value using Disp (so you can use 2 statements) c.)Find the minimum value x and which index has this value. Print both the index and the value using Disp (so you can use 2 statements) d.)Find the...
Given the following Matrices: Briefly discuss the importance of studying mathematical economics
Given the following Matrices: Briefly discuss the importance of studying mathematical economics
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT