From: rocs Smith on
I had this problem and it turned out that I had a conflicting function also named 'lagmatrix' from a third party toolbox that I installed. Type 'help lagmatrix'. If the matlab documentation doesn't come up, you need to remove the conflicting lagmatrix file.



"antonio cherry" <antoniocherry(a)nospam.gmail.com> wrote in message <f95l15$se0$1(a)fred.mathworks.com>...
>
> I seem to be the only one to have a problem with lagmatrix.
> it all started with an error in parcorr(). The function
> lagmatrix doesn't work for me. If i follow the example in
> the help file i get the following
>
> X = [1 -1; 2 -2 ;3 -3 ;4 -4 ;5 -5];
>
> >> XLAG = lagmatrix(X,[0 1 2])
> ??? Error using ==> lagmatrix
> lagmatrix: wrong # of input arguments
>
> Does someone how to fix this error?
>
> thanks a lot, andy
>