How to make a stairs + semilogx plot?

I have a spectrum of sound pressure measurement in one-third octave band starting from 25 Hz to 4000 Hz. I would like to make a staircase plot with x axis in log scale, i.e. a stairs + semilogx plot. Each stair should extend from the lower cutoff and higher cutoff frequencies of each band. How to do it?

 Réponse acceptée

Honglei Chen
Honglei Chen le 30 Mai 2018
I don't know if this is what you want, but here is a quick example to combine stair plot with log scale in x
stairs(1:10,1:10);
set(gca,'XScale','log');
HTH

1 commentaire

Arun Raj
Arun Raj le 30 Mai 2018
Yes! Of course this answers my question. Thank you sir!

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by