how to edit mnrfit?

조회 수: 3 (최근 30일)
Mr M.
Mr M. 2015년 7월 30일
댓글: manoj bhatt 2020년 1월 21일
I would like to change the max iterations in mnrfit. So I copied the mnrfit.m file, and simply edit the following line: iterLim = 100; The new line is iterLim = 50; This is the only change in the file, and rename the function to mnrfit2, and rename the file mnrfit2.m. I tried to use my new mnrfit50 function in the same situation as mnrfit is used, however the following error occurs, why?
Undefined function 'stattestlink' for input arguments of type 'char'.
Error in mnrfit50 (line 146) [flink,dlink,ilink] = stattestlink(link,dataClass);
  댓글 수: 2
Steven Lord
Steven Lord 2015년 9월 10일
Why do you want/need to change the maximum number of iterations?
manoj bhatt
manoj bhatt 2020년 1월 21일
I am also encountering the same problem. When I increase the dimensionality of data then max iteration related problem occurs.

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

답변 (1개)

Walter Roberson
Walter Roberson 2015년 7월 31일
stattestlink is a function that is private to the implementation of mnrfit, in a directory named 'private' relative to the location of mnrfit. Your version, being outside that directory, does not pick up that implementation.
  댓글 수: 4
Mr M.
Mr M. 2015년 9월 10일
It is not possible to use something like this: optimoptions(@mnrfit,'MaxIter',50) ?
Star Strider
Star Strider 2015년 9월 10일
The mnrfit function does not accept an options structure.

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

Community Treasure Hunt

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

Start Hunting!

Translated by