11-06-2008 05:36 PM
11-06-2008 06:59 PM
The error you are seeing is probably coming from the last line of ave.m. In this function 's=size(a)' returns a 2 element vector. Dividing 'sm', a scalar, by 's', a vector will cause an error. If you use 's=length(a)', then 's' will be a scalar and the error will go away.
Chris M.
11-06-2008 09:04 PM
11-06-2008 10:12 PM
11-07-2008 09:52 AM