From: Kathryn Thwaites on 16 Nov 2009 15:29 This code generates the error message ??? Undefined function or method 'adftest' for input arguments of type 'double'. The code is: resultlogregion=adftest(logregion,1,3);
From: jrenfree on 16 Nov 2009 15:47 On Nov 16, 12:29 pm, "Kathryn Thwaites" <katie_thwai...(a)live.com> wrote: > This code generates the error message ??? Undefined function or method 'adftest' for input arguments of type > 'double'. > The code is: > resultlogregion=adftest(logregion,1,3); I don't think you're setting the parameters correctly. You need to specify which parameters you're giving the function, so something like: resultlogregion = adftest(logregion, 'alpha', 1, 'lags', 3);
From: Kathryn Thwaites on 16 Nov 2009 16:30 jrenfree <jrenfree(a)gmail.com> wrote in message <7af35e41-2250-4311-b1e6-2d8c45846fcc(a)2g2000prl.googlegroups.com>... > On Nov 16, 12:29?pm, "Kathryn Thwaites" <katie_thwai...(a)live.com> > wrote: > > This code generates the error message ??? Undefined function or method 'adftest' for input arguments of type > > 'double'. > > The code is: > > resultlogregion=adftest(logregion,1,3); > > I don't think you're setting the parameters correctly. You need to > specify which parameters you're giving the function, so something > like: > > resultlogregion = adftest(logregion, 'alpha', 1, 'lags', 3); Thank you so much for your reply. I changed the parameter specification and came up with the same error message.
From: jrenfree on 16 Nov 2009 16:39 On Nov 16, 1:30 pm, "Kathryn Thwaites" <katie_thwai...(a)live.com> wrote: > jrenfree <jrenf...(a)gmail.com> wrote in message <7af35e41-2250-4311-b1e6-2d8c45846...(a)2g2000prl.googlegroups.com>... > > On Nov 16, 12:29?pm, "Kathryn Thwaites" <katie_thwai...(a)live.com> > > wrote: > > > This code generates the error message ??? Undefined function or method 'adftest' for input arguments of type > > > 'double'. > > > The code is: > > > resultlogregion=adftest(logregion,1,3); > > > I don't think you're setting the parameters correctly. You need to > > specify which parameters you're giving the function, so something > > like: > > > resultlogregion = adftest(logregion, 'alpha', 1, 'lags', 3); > > Thank you so much for your reply. I changed the parameter specification and came up with the same error message. I don't have the actual adftest function so I can't check this. But you might want to look at your logregion vector and make sure that it is a vector of time-series data, as that is what the help file specifies for the input. Also, what parameters are you trying to set with the 1 and 3 input values? Perhaps those values that you're passing are unacceptable or out of range.
|
Pages: 1 Prev: User Input on Matlab Compiled Code Next: find zeros bessel function |