How to use the Simulink Extras->Additional Sinks or simply enter Averaging Spectrum Analyze

4 ビュー (過去 30 日間)
Peter
Peter 2025 年 2 月 25 日
回答済み: Pratyush Swain 2025 年 3 月 27 日
Please can you p[oint me where I find more information on block
Simulink Extras->Additional Sinks
  • Averaging Spectrum Analyze
  • Spectrum Analyzer
any demo, exaplantion etc... would welcomed

回答 (1 件)

Pratyush Swain
Pratyush Swain 2025 年 3 月 27 日
Hi Peter,
I was also unable to find any specific documentation for the blocks under Simulink Extras. We can still although leverage -
'Right click on the block > Masks > Look under the Mask' option to know about the behaviour of of the block.
This block is actually an S-Function written in MATLAB Code:
% View Averaging Spectrum Analyzer Code%
edit msfuntf
The code is documentated as follows and provides information about the block:
%MSFUNTF an MATLAB S-function which performs transfer function analysis using ffts.
% This MATLAB file is designed to be used in a Simulink S-function block.
% It stores up a buffer of input and output points of the system
% then plots the frequency response of the system based on this information.
%
% The input arguments are:
% npts: number of points to use in the fft (e.g. 128)
% HowOften: how often to plot the ffts (e.g. 64)
% offset: sample time offset (usually zeros)
% ts: how often to sample points (secs)
% averaging: whether to average the transfer function or not
%
% The spectrum analyzer displays three plots: the time history,
% the phase and magnitude of the transfer function.
For more information, you also refer to this similar matlab answer thread - https://www.mathworks.com/matlabcentral/answers/36280-using-simulink-s-averaging-spectrum-analyzer

カテゴリ

Help Center および File ExchangeSpectral Analysis についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by