MATLAP plotting with a range of values on x axis.
Show older comments
Hello!
I want to plot the attached graph with a range of values on x axis instead of a single value. So, my x valules would be,
'0.75-5' '5-10' '10-20' '20-30' '30-40' '>50' etc.
Can someone help me to underatand how to do that?
Thank you very much!

Answers (1)
Walter Roberson
on 17 Apr 2021
0 votes
discretize() with categorical labels
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!