Spectrum Analysis on signals in the Simulation Data Inspector

19 ビュー (過去 30 日間)
Jack Daniels
Jack Daniels 2022 年 10 月 24 日
回答済み: Kothuri 2024 年 11 月 14 日
Is it possible to perform the spectrum analysis (FFT) on signals in Simulation Data Inspector? If so, how?

回答 (1 件)

Kothuri
Kothuri 2024 年 11 月 14 日
It is possible to perform spectrum analysis (Fast Fourier Transform (FFT)) on signals using the Simulation Data Inspector (SDI) in MATLAB/Simulink. You can try the below steps:
  • Make sure the signals of interest are logged during the simulation run. You can do this by selecting the signals in your Simulink model and enabling logging.
  • After the simulation is complete, open SDI by either:
  • Clicking the Simulation Data Inspector button in Simulink.
  • Type the below line in the MATLAB command window.
Simulink.sdi.view
  • Right-click on the signal you want to analyse in the signal table.
  • Select Analyze > Spectrum (FFT) from the context menu.
  • Alternatively, use the Visualization Settings panel to change the plot type to Spectrum (FFT).
  • You can adjust parameters such as the number of points for the FFT, windowing functions, and other settings to refine your analysis.
  • The FFT analysis view will display the frequency spectrum of the signal, allowing you to analyse the frequency components.
You can refer the below documentation link for more info on “Simulink.sdi.view” command and SDI

カテゴリ

Help Center および File ExchangeAnalyze Simulation Results についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by