I am using a median filter in Matlab on data I have collected and was wondering if there are any rules to setting the window size? Is there - for example - a rule that calculates the optimal window size based on number of available data points per second?

cheers,