How to make a heatmap of trajectory?
14 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
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
on 11 May 2017
How to interpolate data generated from hist3()? Would gridInterpolant be better?
See Also
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!