- "Stop Simulation" block: https://www.mathworks.com/help/simulink/slref/stopsimulation.html
- Example using "Stop Simulation" block with "Relational operator" block: https://www.mathworks.com/help/simulink/slref/stopsimulation.html#:~:text=Stop%20Simulation%20Block%20with%20Relational%20Operator%20Block
- Use the "To Workspace" block to export the signal data continuously to the MATLAB workspace.
- After the simulation stops, use MATLAB's plotting functions (e.g., plot, spectrogram) to recreate the spectrum analyzer's visualization.