MATLAB Answers

How to create 'density' plot from 2d scatter data

57 views (last 30 days)
Donovan Chin
Donovan Chin on 5 Apr 2012
Answered: AnnArborObserver on 31 Aug 2016
How to create 'density' plot from 2d scatter data?
I have 2D scatter data, and i would like to determine the density of points (count) within a user defined 'grid' over the data.
The density would then be used to contour with or a type of heat map
regards, Donovan

  0 Comments

Sign in to comment.

Answers (2)

Dr. Seis
Dr. Seis on 5 Apr 2012
Check out the example for hist3 in the Help navigation window... maybe useful here.

  1 Comment

Sign in to comment.


AnnArborObserver
AnnArborObserver on 31 Aug 2016
Another option is histogram2.

  0 Comments

Sign in to comment.

Sign in to answer this question.