How to find if a matrix is Singular in Matlab

前端 未结 5 1929
北海茫月
北海茫月 2020-12-18 21:23

I use the function below to generate the betas for a given set of guess lambdas from my optimiser.

When running I often get the following warning message:

5条回答
  •  时光说笑
    2020-12-18 21:35

    You could compare the result of rank(G) with the number of columns of G. If the rank is less than the column dimension, you will have a singular matrix.

提交回复
热议问题