how to edit mnrfit?

3 visualizaciones (últimos 30 días)
Mr M.
Mr M. el 30 de Jul. de 2015
Comentada: manoj bhatt el 21 de En. de 2020
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 comentarios
Steven Lord
Steven Lord el 10 de Sept. de 2015
Why do you want/need to change the maximum number of iterations?
manoj bhatt
manoj bhatt el 21 de En. de 2020
I am also encountering the same problem. When I increase the dimensionality of data then max iteration related problem occurs.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 31 de Jul. de 2015
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 comentarios
Mr M.
Mr M. el 10 de Sept. de 2015
It is not possible to use something like this: optimoptions(@mnrfit,'MaxIter',50) ?
Star Strider
Star Strider el 10 de Sept. de 2015
The mnrfit function does not accept an options structure.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by