https://technicalsource9.medium.com/matlab-mldivide-returns-nan-when-there-are-multiple-solutions-03cbb3c923bc