i trying use nonlinearmodel.fit() function in matlab regress 2 variables. however, getting following error: error using internal.stats.getscheffeparam>validateparameters (line 182) if non-empty, jw must numeric, real matrix. error in internal.stats.getscheffeparam (line 110) [j,vf,vp,jw,intopt,tolsvd,tole,vq,usingj] = validateparameters(j,vf,vp,jw,intopt,tolsvd,tole,vq,allowedintopt); error in nlinfit (line 340) sch = internal.stats.getscheffeparam('weightedjacobian',j(~nans,:),'intopt','observation','vq',vq); error in nonlinearmodel/fitter (line 1121) [model.coefs,~,j_r,model.coefficientcovariance,model.mse,model.errormodelinfo,~] = ... error in classreg.regr.fitobject/dofit (line 219) model = fitter(model); error in nonlinearmodel.fit (line 1484) model = dofit(model); error in getmatrix (line 101) nlm = nonlinearmodel.fit(regressormatrix',temp2',modelfun,beta0); my re...