From: Carlotta Schuster on 18 May 2010 12:24 Hi, I try to estimate the OLS by results=ols(y,[ones(T,1) x]); It wont work n i dont know why, I defined T, y, x and the equation. Matlab tells me ??? Undefined function or method 'ols' for input arguments of type 'double'. Error in ==> Monte_Carlo at 16 results=ols(y,[ones(T,1) x]); And i dont understand what it mean type double. I would be very happy if somebody could help me. Thanks
From: Wayne King on 18 May 2010 12:39 "Carlotta Schuster" <schuster.carlotta(a)googlemail.com> wrote in message <hsuev4$500$1(a)fred.mathworks.com>... > Hi, > > I try to estimate the OLS by > > results=ols(y,[ones(T,1) x]); > > It wont work n i dont know why, I defined T, y, x and the equation. > > Matlab tells me > > ??? Undefined function or method 'ols' for input arguments of type 'double'. > > Error in ==> Monte_Carlo at 16 > results=ols(y,[ones(T,1) x]); > > And i dont understand what it mean type double. > I would be very happy if somebody could help me. > > Thanks Hi, that error means that Matlab does not know where the function ols.m is. The type 'double' is just telling you that you tried to input something of class double to ols(). Make sure wherever ols.m is on your machine that that directory (folder) is in your Matlab path. Wayne
From: Carlotta Schuster on 21 May 2010 09:31 "Wayne King" <wmkingty(a)gmail.com> wrote in message <hsufr8$2qh$1(a)fred.mathworks.com>... > "Carlotta Schuster" <schuster.carlotta(a)googlemail.com> wrote in message <hsuev4$500$1(a)fred.mathworks.com>... > > Hi, > > > > I try to estimate the OLS by > > > > results=ols(y,[ones(T,1) x]); > > > > It wont work n i dont know why, I defined T, y, x and the equation. > > > > Matlab tells me > > > > ??? Undefined function or method 'ols' for input arguments of type 'double'. > > > > Error in ==> Monte_Carlo at 16 > > results=ols(y,[ones(T,1) x]); > > > > And i dont understand what it mean type double. > > I would be very happy if somebody could help me. > > > > Thanks > > Hi, that error means that Matlab does not know where the function ols.m is. The type 'double' is just telling you that you tried to input something of class double to ols(). Make sure wherever ols.m is on your machine that that directory (folder) is in your Matlab path. > > Wayne Thank you, Wayne!
|
Pages: 1 Prev: Difference between image, patch and surface Next: show the whole numbers...how |