how to draw a histogram like the image i gave (right image), the x axis and top axis show the values with the line start from left and right axis.
5 次查看(过去 30 天)
显示 更早的评论

1 个评论
Dyuman Joshi
2024-2-27
That's not a histogram.
It's a line plot with two set of axes in one figure. See this example to learn how to implement that - https://in.mathworks.com/help/matlab/creating_plots/graph-with-multiple-x-axes-and-y-axes.html#mw_ca4bd216-f46d-49cd-94ed-3fe176088b04
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!