- 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.
- 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.