필터 지우기
필터 지우기

How can I modify options of the command power_fftscope?

조회 수: 19 (최근 30일)
baltoro
baltoro 2017년 8월 10일
댓글: Dionisio 2022년 9월 16일
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?

답변 (1개)

Nick Choi
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
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
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 CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by