【问题标题】:time series plot on google earth using matlab使用matlab在谷歌地球上绘制时间序列图
【发布时间】:2012-06-15 14:08:09
【问题描述】:

我有三组数据:

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

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

我试过了

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

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

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

【问题讨论】:

  • 只是我的糟糕假设,但不应该是 ge_plot(longitude,latitude) 吗?

标签: matlab plot google-earth


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2023-03-21
    • 1970-01-01
    • 1970-01-01
    • 2012-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多