필터 지우기
필터 지우기

lognfit error using example code

조회 수: 1 (최근 30일)
Stephen
Stephen 2016년 9월 20일
댓글: Brendan Hamm 2016년 9월 20일
I am trying to use the function lognfit exactly using the code that is given in the help and I get the error message:
Error using normfit Too many input arguments.
Error in lognfit (line 82) [muhat,sigmahat,muci,sigmaci] = normfit(log(x),alpha,censoring,freq,options);
The same thing happens when I try using the norm fit example. Is there a bug? I am using R2014b on MacOS10.11.6
  댓글 수: 2
Stephen
Stephen 2016년 9월 20일
Found the problem - I had another (old) function sitting buried in a folder of misc scripts I have used at various times also called normfit...
Brendan Hamm
Brendan Hamm 2016년 9월 20일
Tip: Try and avoid using the same name as functions. Consider using CamelCase or mixedCase for your function names. Always place your files at the bottom of the search path.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by