How can I determine the frequency of a signal in Simulink?

조회 수: 292 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
댓글: Jan 2019년 7월 8일
I would like to use a built-in Simulink block to determine the frequency of a signal.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2018년 5월 7일
A built-in block that determines the frequency of a signal is not available in the Simulink product.
To work around this issue, you can write a C-MEX S-function that implements a fast Fourier transform (FFT) algorithm. For more information, see "Writing S-Functions" in the Simulink documentation.
Otherwise, use one of the following built-in options provided by the Signal Processing or DSP toolbox products:
  • Use the Spectrum Scope block to compute the frequency of a signal.
  • Use the FFT and Buffer blocks to create a signal frame and analyze its frequency.

추가 답변 (1개)

AbhimanyuSingh
AbhimanyuSingh 2017년 8월 9일
There is no such block which can directly calculate the frequency of block, but we can design a subsystem which can give you the frequency of signal. Please find the snapshot for the same:
  댓글 수: 2
Jan
Jan 2018년 7월 19일
@Jean Ubertalli: Please do not use flags for posting comments.
Jan
Jan 2019년 7월 8일
@SUMANT ANAND: It is hard so solve "similar" problems. Please open a new thread and explain your specific problem.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Array and Matrix Mathematics에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2007a

Community Treasure Hunt

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

Start Hunting!

Translated by