Extra Signal Processing Routines

Error Analysis Routines

db Convert the specified power value to decibels assuming a reference value of 1.
rms Compute the root mean squared value of the specified array x.
snr Compute the signal-to-noise ratio (in dB) of a signal given its reconstruction.

Filtering Routines

downsample Downsample a vector x by returning every nth entry.
fftfilt Filter the signal x with the FIR filter described by the coefficients in b using the overlap-add method.
remezord Calculate the parameters required by the Remez exchange algorithm to construct a finite impulse response (FIR) filter that approximately meets the specified design.
upsample Upsample a vector x by inserting n-1 zeros between every entry.

Miscellaneous Routines

nextpow2 Return the first integer N such that 2**N >= abs(x)
oddceil Return the smallest odd integer no less than x.
oddround Return the nearest odd integer from x.