MATLAB Examples

Display Frequency Input on Spectrum Analyzer

This example shows how to visualize frequency input signals with the Spectrum Analyzer block.

To visualize frequency-domain input signals using a Spectrum Analyzer block, in the Spectrum Settings, set Input domain to Frequency. In this example, also clear the Two-sided spectrum check box.

You can see two peaks at 5 kHz and 10 kHz. To measure these peaks, use the Peak Finder measurement tool.