Update fpX.m

added parameters for periodicity