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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started