Hi everyone, I would like to use leasqr for non linear minimization. Am I wrong or it seems that leasqr calculate direclty the "chi2" ? In case a have a "Matrix" as data, would it work right ? In this case my "function" should return a matrix as well ? Many thanks in advance, marco