FFTDATA = power_fftscope(ScopeData)
returns the FFT results for the signal saved in the ScopeData
structure-with-time.
FFTDATA = power_fftscope(FFTDATA)
uses the FFTDATA structure as a template variable to modify
analysis settings and signal selection, and to perform FFT analysis. The
power_fftscope function ignores any user-defined
FFTDATA fields that are not listed in the
FFTDATA structure.
power_fftscope(ScopeData) plots the FFT
analysis results for the last simulation cycle of the signal saved in the
ScopeData variable.
power_fftscope(FFTDATA) plots the FFT
analysis results for the signal options specified in the FFTDATA
structure.
Signal you want to perform the Fourier analysis on, specified as a
structure with time.
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.
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.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
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: United States.
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.