How to make a stairs + semilogx plot?

8 views (last 30 days)
Arun Raj
Arun Raj on 30 May 2018
Commented: Arun Raj on 30 May 2018
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

Honglei Chen
Honglei Chen on 30 May 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 Comment
Arun Raj
Arun Raj on 30 May 2018
Yes! Of course this answers my question. Thank you sir!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!