about non linier regression
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a formula to get Nonlinear regression. But I have a problem to define tbl and b. May be is there anybody can help me to solve my problem.
Thx.
tbl = table(Amax,Mw,Vs, Depth, Distance); modelfun = (@(b,RegAll)b(1) + b(2)*RegAll(:,1)+b(3)*RegAll(:,2)+b(4)*RegAll(:,3))/(b(5)+b(6)*exp.^(b(7)*RegAll(:,4)+b(8)*RegAll(:,5))); beta0 = [-3 0.9 0.05 0.3 0.1]; mdl = fitnlm(tbl,modelfun,beta0);
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!