xbinavg(x, y, xedge, medopt)
版本 1.1.0.0 (1.3 KB) 作者:
Ryosuke F Takeuchi
export mean y-value via x-value bin
Simple function for summarizing a large number of 2d-data.
Calculating mean and standard deviation of y-datas within each bin of x-data.
Example code:
--
x = rand(1,1280)*100;
y = x.^2 + 5000*randn(size(x));
[meanv, stdv, xv, nv] = xbinavg(x, y, 0:10:100, true);
scatter(x,y, [], [.8 .8 .8], '.');
hold on;
errorbar(xv,meanv,stdv, 'k','LineWidth', 5/2)
---
引用格式
Ryosuke F Takeuchi (2024). xbinavg(x, y, xedge, medopt) (https://www.mathworks.com/matlabcentral/fileexchange/55222-xbinavg-x-y-xedge-medopt), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2015a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization > Statistical Visualization > Box Plots >
在 Help Center 和 MATLAB Answers 中查找有关 Box Plots 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!