When the simulation is complete, open the powergui and select FFT Analysis. A new window opens. Set the parameters specifying the analyzed signal, the time window, and the frequency range.
An example is provided in the documentation:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!