How can I plot discrete x-axis values?
显示 更早的评论
How can I choose which x axis values are displayed? I am plotting a bar graph with x-axis values of [1,2,3,5,7,10] and I want there to be equal spacing between the bars.
If I use bar() and plot() there is a gap between bars because the x-values 4,6,8,9 are not in the data.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!