View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Binned Scatter Plot

5.0 | 1 rating Rate this file 12 Downloads (last 30 days) File Size: 3.71 KB File ID: #19506 Version: 1.1
image thumbnail

Binned Scatter Plot


Stefan Schroedl (view profile)


08 Apr 2008 (Updated )

plot quantiles of y given quantiles of x.

| Watch this File

File Information

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.

  y=[sin(x); cos(x)] +randn(2,201);


This file inspired Clickfit Oh For Curve Fitting By Eye/Hand.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
05 Dec 2014 fateh

fateh (view profile)

how could i run this code...

Comment only
19 Jun 2014 MiauMiau

12 Jan 2010 1.1

- Bug fixes: rare cases of empty bins; show minimum and maximum x-value
- New options: density-based transparency; mean/std instead of quantiles (useful for quantized data)
- Optional arguments specified as attribute/value pairs

Contact us