I am using the built in MATLAB function buffer() but received the error message
-> Too Many Input arguments???
Although the number of inputs are correct.
I checked whether I have other m-files named buffer, but I didn't find one. The strange point is that it works on the PC at office, but doesn't work on my laptop although I use the same MATLAB version in both.
1 - May be the version of Matlab diffres
2- Save as the program and see if the problem fixes
3 - check the function in the Help of your Matlab program at home
In my code I use buffer for dividing a data file into payload packets, I used it before om my SAME laptop for speaker recognition project and it was working properly. Now I only try to call buffer from the comand prompt:
>> buffer([1 0 1 1 0 1], 2)
The out put should be the matrix:
[ 1 1 0 ; 0 1 1];
There are many functions in the Matlab and if we used the same name in my functions it'd cause the above problem... I also was on the above way and get this message.. I therefore use Hungarian words to name my functions.. )) T