I am trying to make matlab code for generating rank deficient random matrix of order $m\times n$, $m > n$.
Rank deficient matrix: Here $m\times n$, $m > n$ matrix $A$ would be rank deficient if $rank (A) = r < n$. I think this could be done by putting $n+1$ columns equal to zero. But I am just beginner to Matlab that is why getting little difficulty implement this.
Thank you