How can I plot a signal spectrum with an n-octave frequency scale in the Signal Analyzer?

8 vues (au cours des 30 derniers jours)

I would like to visualize a signal spectrum in the Signal Analyzer with a frequency-spectrum plot that uses n-th octave bands in the frequency scale.
How can I achieve this?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 15 Jan 2025
The Signal Analyzer currently only supports "Linear" and "Log" frequency scales. Our Development team is aware of this issue, and is considering plans to potentially expand the options for the frequency scale in the Signal Analyzer to n-octaves, for a future MATLAB release.
To plot the spectrum with an n-octave frequency scale, follow the below workaround:
  1. In the Signal Analyzer app, navigate to the "Display" tab in the top toolbar and click on "Spectrum" to plot the frequency spectrum for your selected signal.
  2. In the "Display" tab, click "Generate Script" > "Spectrum Script" to generate a MATLAB script that computes the frequency spectrum of your selected signal. This computed frequency spectrum is not in dB units, and the frequency scale is "Linear".
  3. You can manually transform the frequency-axis of the computed frequency spectrum to an n-octave scale by taking the n-th logarithm.
  4. You can now plot the frequency spectrum with an n-octave frequency scale in MATLAB, outside of the Signal Analyzer.

Plus de réponses (0)

Catégories

En savoir plus sur Octave dans Help Center et File Exchange

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by