How to draw the below type of graph in MATLAB
3 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Stalin Samuel
2016-3-16
The following links may help you Histogram with a distribution fit, Graph with Multiple x-Axes and y-Axes
更多回答(1 个)
dpb
2016-3-16
Simplest approximation is
doc histfit % use optional specified distribution option for Weibull
add the annotation with text
The specific form would be doable with plotyy with @hist and @plot with the vector of observations and the computed pdf values, respectively.
2 个评论
dpb
2016-3-16
Actually that was a bum steer, sorry -- the form of input for hist doesn't meet the criterion for use with plotyy; namely that the function must have form func(X,Y)
As the other respondent noted, use the examples for two axes as an example and "salt to suit". The basics are to create to axes wherein the second is the same 'position' as the first but with the y axes at the right instead of left as is default. The samples are pretty straightforward; give it a go and show us your efforts if you get stuck...
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Two y-axis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!