power_fftscope
Fourier analysis of simulation data signals
Syntax
Description
Input Arguments
ScopeData
— Signal you want to perform Fourier analysis on
structure with time (default)
Signal you want to perform the Fourier analysis on, specified as a structure with time.
FFTDATA
— Signal options
structure (default)
Signal options, specified as a structure with these fields:
Field | Description |
---|---|
time | The time vector of the simulation data signal saved
in the ScopeData variable. |
signals | The signals saved in the ScopeData
variable. |
blockName | The name of the Scope block associated
with the ScopeData variable. |
input | The input signal of the selected simulation data variable. |
signal | The index of the selected input signal specified by
the Input field. |
startTime | The start time of the FFT window. |
cycles | The number of cycles of the FFT window. |
fundamental | The fundamental frequency of the analyzed signal. |
maxFrequency | The maximum frequency evaluated by the FFT analysis. |
THDmaxFrequency | The maximum frequency for the total harmonic
distortion (THD) calculation. Set the value to
inf to calculate the THD at the
Nyquist frequency. |
FFTdata | The analyzed signal (FFT window data). |
THDbase | The base used to compute the THD. Set to
fund to normalize the THD with
respect to fundamental value. Set the THDbase to
DC to normalize the THD with
respect to the DC component value. |
freqAxis | The type of frequency axis of the FFT analysis plot.
Set to hertz to display the frequency
axis in hertz. Set to harmonicorder
to display the frequency axis in harmonic
orders. |
mag | The computed magnitude of FFT. |
phase | The computed phase of FFT. |
freq | The frequency vector. |
THD | The computed THD for the analyzed signal. The THD calculation includes all the inter-harmonics of the selected input signal. |
samplingTime | The sampling time of the selected input signal. |
samplePerCycle | The number of samples per cycle of the selected input signal. |
DCcomponent | The DC component value of the selected input signal. |
magFundamental | The fundamental component value of the selected input signal. |
Output Arguments
FFTDATA
— FFT results for signal
structure
FFT results for the signal saved in the ScopeData
argument, returned as a structure with these fields:
Field | Description |
---|---|
time | The time vector of the simulation data signal saved
in the ScopeData variable. |
signals | The signals saved in the ScopeData
variable. |
blockName | The name of the Scope block associated
with the ScopeData variable. |
input | The input signal of the selected simulation data variable. |
signal | The index of the selected input signal specified by
the Input field. |
startTime | The start time of the FFT window. |
cycles | The number of cycles of the FFT window. |
fundamental | The fundamental frequency of the analyzed signal. |
maxFrequency | The maximum frequency evaluated by the FFT analysis. |
THDmaxFrequency | The maximum frequency for the total harmonic
distortion (THD) calculation. Set the value to
inf to calculate the THD at the
Nyquist frequency. |
FFTdata | The analyzed signal (FFT window data). |
THDbase | The base used to compute the THD. Set to
fund to normalize the THD with
respect to fundamental value. Set the THDbase to
DC to normalize the THD with
respect to the DC component value. |
freqAxis | The type of frequency axis of the FFT analysis plot.
Set to hertz to display the frequency
axis in hertz. Set to harmonicorder
to display the frequency axis in harmonic
orders. |
mag | The computed magnitude of FFT. |
phase | The computed phase of FFT. |
freq | The frequency vector. |
THD | The computed THD for the analyzed signal. The THD calculation includes all the inter-harmonics of the selected input signal. |
samplingTime | The sampling time of the selected input signal. |
samplePerCycle | The number of samples per cycle of the selected input signal. |
DCcomponent | The DC component value of the selected input signal. |
magFundamental | The fundamental component value of the selected input signal. |
Version History
Introduced before R2006a
See Also
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)