sig2osp
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
Convert an amplitude spectrum to an order spectrum.
- Usage
sig2osp(x, sr, f1 {, do, no, oini})
- a
- amplitude or power spectrum (vector)
- sr
- signal sampling rate in Hz; 0 < sr
- f1
- frequency of the 1st order in Hz; 0 < f1 < sr/4
- do
- resolution of the order spectrum; 0 < do (default=0.1)
- no
- length of the order spectrum; 2 < no (default=500)
- oini
- amplitude value for order spectrum initialization (default=0)
- Description 1
- The function computes the amplitude spectrum of the signal x using a radix-2 fft. The signal is expanded with zeros to the next possible fft transformation length if necessary. The same resampling algorithm as used by the function Programmer Guide/Command Reference/EVAL/asp2osp is used to convert the frequency spectrum to an order spectrum.
- Result
- The order spectrum o (vector with no elements).