Rub*_*ben 1 matlab gps dictionary heat
我有一堆来自足球比赛(作为裁判)的GPS数据.我想创建一个热图,这样就可以清楚地了解你在这个领域大部分时间都在哪里.因此,当有许多点彼此接近时,这意味着红色;当没有点或点彼此远离时,这意味着蓝色.
有人知道如何在Matlab中做到这一点?
您可以使用Robert Henson编写的dscatter文件.
示例示例:
addpath(genpath('../src_plot'));
X = randn(1000,1);
Y = randn(1000,1);
dscatter(X, Y, 'plottype', 'image');
colormap('jet')
Run Code Online (Sandbox Code Playgroud)
您可以使用'surf','mesh','contour'根据您所期望的,而不是图像.