How can I modify options of the command power_fftscope?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi everyone! I have a signal named V1 in my Simulink project, and I want to use the command fftV1=power_fttscope(V1) in the workspace to obtain the structure with all the information about the fft of the signal. As result, the simulation gives the fundamental frequency of the signal, but the command power_fttscope sets it in a different value. If I use the block powergui to perform fft analisy I can set parameters manually. But how can I use the command to obatin in the workspace all the info about fft?
0 Kommentare
Antworten (1)
Nick Choi
am 16 Aug. 2017
Once you have the desired signal in the base workspace, you can run the FFT analysis once using:
>> FFTDATA = power_fftscope(V1)
The output FFTDATA is a structure which contains the fft information for the V1 signal. It contains numerous values such as fundamental frequency, maximum frequency etc. as described in the following doc link: https://www.mathworks.com/help/physmod/sps/powersys/ref/power_fftscope.html
To change the parameters, you can execute commands similar to these:
>> FFTDATA.frequency = 50; % Set frequency to 50 Hz
>> FFTDATA.maxFrequency = 5000; % Set the max frequency to 5000 Hz
>> FFTDATA = power_fftscope(FFTDATA); % Run the analysis with the new settings.
2 Kommentare
muddamalla hareesh
am 27 Aug. 2022
Unrecognized field name "input".
Error in power_fftscope_pr
Error in power_fftscope (line 28)
[varargout{1:nargout}] = power_fftscope_pr(varargin{:});
Dionisio
am 16 Sep. 2022
This is wrong:
FFTDATA.frequency = 50; % Set frequency to 50 Hz
Change it to:
FFTDATA.fundamental = 50; % Set fundamental frequency to 50 Hz
Siehe auch
Kategorien
Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!