0

我有三组数据:

  1. 时间
  2. 经度
  3. 纬度

我想使用 google earth toolbox for matlab 在 google earth 上绘制这个,我需要的是当我移动时间滑块时,应该在 google earth 上绘制一条线。

我试过这个

   x  = [longitude, latitude];
   y = time;
   kmlStr = ge_plot(x,y);

但是发生了错误。另一方面 ge_gplot 对此没有意义。

有没有办法我可以使用谷歌地球工具箱做这个时间序列图?

4

1 回答 1

1

创建两个向量:一个用于 x(经度),一个用于 y(纬度)。 ge_plot(x,y)将绘制一条连接(x,y)这些向量中每对点的线。

如果要在滑块前进时画线,则需要使用回调函数。在此函数中,执行ge_plot(x(1:ind), y(1:ind) )位置ind由滑块的“时间”值确定。

于 2012-06-13T02:02:34.430 回答