Computes the single-sided, scaled amplitude spectrum of a time-domain signal.
The input time-domain signal, usually in volts.
This input can be a 1D array of double-precision floating-point numbers or a 1D array of complex double-precision floating-point numbers.
The time-domain record must contain at least three cycles of the signal for a valid estimate.
Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.
Default: No error
The sample period of the time-domain signal, usually in seconds.
Set this input to 1/fs, where fs is the sampling frequency of the time-domain signal.
The magnitude of the single-sided power spectrum.
The single-sided amplitude spectrum phase, in radians.
Error information. The node produces this output according to standard error behavior.
The frequency interval of the power spectrum. The unit of this output is Hz if the sample period is in seconds.
To compute the single-sided, scaled amplitude spectrum, this node first uses the following equation to compute the two-sided amplitude spectrum:
Then, this node uses the following equation to convert the two-sided amplitude spectrum to the single-sided amplitude spectrum:
where B is the single-sided amplitude spectrum and is the floor operation.
This node computes the magnitude of the single-sided amplitude spectrum B as magnitude = B and the phase as phase(B).
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported