Binned Scatter Plot
With the default settings, BINNED_PLOT(X,Y) splits vector X into bins of approximately equal size, and plots each median against the median of the corresponding Y-values, as well as their inter-quartile range. X and Y must have the same number of rows or columns.
This is useful to visualize two-dimensional distributions.
Options include e.g.: plotting different quantiles; means/variances instead of quantiles; varying the number of bins; and density-dependent coloring.
Example:
x=0:0.1:20;
y=[sin(x); cos(x)] +randn(2,201);
binned_plot(x,y)
Citation pour cette source
Stefan Schroedl (2026). Binned Scatter Plot (https://fr.mathworks.com/matlabcentral/fileexchange/19506-binned-scatter-plot), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Remerciements
A inspiré : clickfit_OH for curve fitting by eye/hand
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.1.0.0 | - Bug fixes: rare cases of empty bins; show minimum and maximum x-value
|
||
| 1.0.0.0 |
