random nonsingular matrices using matlab

2.2k Views Asked by At

Does anybody know how to generate a random nonsingular matrices using matlab? I use sprand (m, n , dens, 1)function to specify the condition number to be 1 right now.But it is too slow.Is there any command through which we can generate a random nonsingular matrices? Thank you very much!