Thanks for the program. It is great!
only fcs.c is needed. download it and compile with
>> mex fcs.c
(mine version is MATLAB2008b on WinXP SP2), so no -O or -DWIN32 options needed.
It will automatically generate fcs.mexw32.
The syntax of fcs.mexw32 file is documented in fcs.m which is nothing but an empty shell.