在MATLAB中从GPS数据创建“热图” [英] Create 'heat map' from GPS data in matlab

查看:2007
本文介绍了在MATLAB中从GPS数据创建“热图”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一堆足球比赛的GPS数据(作为裁判)。我想创建一个热图,所以很清楚你在这个领域大部分时间度过的时间。因此,当没有点或点彼此远离时,当有很多点彼此接近并且蓝色时,这意味着红色。



有人在Matlab中如何做到这一点?

解决方案

您可以使用


I have a bunch of GPS-data from a soccer game (as a referee). I would like to create a heat map, so that it is clear where you spent most of the time in the field. So this means a red color when there are a lot of dots close to each other and blue color when there are no dots or the dots are far from each other.

Someone an idea how to do this in Matlab?

解决方案

You can use the dscatter file written by Robert Henson.

Sample example:

addpath(genpath('../src_plot'));

X = randn(1000,1);
Y = randn(1000,1);

dscatter(X, Y, 'plottype', 'image');
colormap('jet')

You can use 'surf', 'mesh', 'contour' instead of image according to what you expect.

这篇关于在MATLAB中从GPS数据创建“热图”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆