Question: Do the following using Matlab: If you generate a random n n matrix, it is unlikely to have rank n. But how likely is it

Do the following using Matlab: If you generate a random n n matrix, it is unlikely to have rank n. But how likely is it to being close to having a smaller rank? To explore this, do the following experiment: Generate 1000 matrices using rand(), each of size 2 2, and use cond to find their condition number. Count the number with condition number strictly less than 10.0, the number with condition number greater than or equal to 10.0 but strictly less than 100.0, the number with condition number greater than or equal to 100.0 but strictly less than 1000.0, and so on, with the last count being those with condition number greater than or equal to 10^{9} . Print out the results so they are easily readable. Then do the same task for matrices of size 4 4, then of size 8 8, then of size 16 16, and finally of size 32 32. In each case generate 1000 matrices and count them according to their condition number. For this problem, turn in a diary or script (showing both the Matlab statements used, and Matlabs output). Make sure the output is easy to understand.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!