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)
Cita come
Stefan Schroedl (2024). Binned Scatter Plot (https://www.mathworks.com/matlabcentral/fileexchange/19506-binned-scatter-plot), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Riconoscimenti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.