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?

 Accepted Answer

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 Comment

Yes! Of course this answers my question. Thank you sir!

Sign in to comment.

More Answers (0)

Asked:

on 30 May 2018

Commented:

on 30 May 2018

Community Treasure Hunt

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

Start Hunting!