nonlinear fit model (coefficient and standard error)
    조회 수: 2 (최근 30일)
  
       이전 댓글 표시
    
Dear Matlab experts,
I would like to get coefficient and standard error for the nonlinear function. Please check this coding. Thank you very much in advance.
ds = dataset(Time,Energy,Capital,Emission); Time = [1,2,3,4,5]; Energy = [100,110,120,130,140]; Capital = [11,15,12,13,17]; Emission = [120,143,135,146,150]; modelfun = @(b,x)b(1)*exp(-b(2)*x(:,1))*x(:,2)-b(3)*(x:,3).^b(4)*x(:,2); pguess = [1,0.2, 0.01,0.02]; mdl = fitnlm(ds,modelfun,pguess)
Sincerely,
J1
댓글 수: 0
답변 (1개)
  Star Strider
      
      
 2016년 6월 21일
        You have several errors in ‘modelfun’, including an orphan comma and at least one unmatched parenthesis. I have no idea what function you are coding, so you have to fix this yourself.
When ‘modelfun’ is coded correctly, and if you’re still having problems, post back here and I’ll help you as much as I can.
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!