How to make a heatmap of trajectory?

14 views (last 30 days)
Mao Yeh
Mao Yeh on 18 Jan 2016
Commented: Walter Roberson on 11 May 2017
Hi Colleagues,
I did the behavior test and tacked the mice. I got the position number (x, y) of mice in the field. The video rate is 30 PFS. How can I make a heatmap or color map of trajectory to indicate the mice spent more time in some region.
Thank you very much.

Answers (1)

Image Analyst
Image Analyst on 18 Jan 2016
Like I suggested in this thread, you might want to use hist3() to create a 2D histogram of counts in each bin location. To make a larger smoother surface, rather than a chunk bar chart, you can use scatteredInterpolant.
  2 Comments
Krispy Scripts
Krispy Scripts on 11 May 2017
How to interpolate data generated from hist3()? Would gridInterpolant be better?
Walter Roberson
Walter Roberson on 11 May 2017
From R2017a on you could consider using heatmap

Sign in to comment.

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!