Hi Ansley
One thing you could do, if there is just one missing timestep, is to skip that first value by sending variable[l=2:428] to the function.
Somebody on the list here might suggest the right way to deal with missing time steps to get a good FFT analysis - a local mean might be a better idea than the overall mean, as you'll see from the example below.