Resampling is the process of changing the sampling rate of data. Resample changes the sampling rate of the input AOs to the desired output sampling frequency. LTPDA resample overloads resample function of Matlab Signal Processing Toolbox for AOs.
b = resample(a, pl)
With the following parameters:
Examples
1. Resampling a sequence of random data at original sampling rate of 1 Hz at an output sampling of 50 Hz.
pl = plist('tsfcn', 'randn(size(t))','nsecs',100,'fs',1,'yunits','m'); x=ao(pl) pl_re = plist('fsout', 50); x_re = resample(x, pl_re); % resample the input AO (x) to obtain the resampled output AO (y) iplot(x, x_re) % plot original and resampled data