How can I modify options of the command power_fftscope?
12 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Nick Choi
2017 年 8 月 16 日
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 件のコメント
muddamalla hareesh
2022 年 8 月 27 日
Unrecognized field name "input".
Error in power_fftscope_pr
Error in power_fftscope (line 28)
[varargout{1:nargout}] = power_fftscope_pr(varargin{:});
Dionisio
2022 年 9 月 16 日
This is wrong:
FFTDATA.frequency = 50; % Set frequency to 50 Hz
Change it to:
FFTDATA.fundamental = 50; % Set fundamental frequency to 50 Hz
参考
カテゴリ
Help Center および File Exchange で Fourier Analysis and Filtering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!