使用Matlab Google-Earth Toolbox绘制纬度和经度

Elp*_*rto 6 matlab google-earth latitude-longitude

我正在尝试使用Google-Earth工具箱绘制一些航路点.它的文档相当差,所以我认为这将是一个很好的Stack Overflow问题.

我有一个矩阵,wypts有十进制格式的纬度和经度坐标对(如果有人想在宾夕法尼亚州的州立大学机场(SCE)).

wypts =
   40.8489  -77.8492
   40.8922  -77.8492
   40.9355  -77.8492
   40.9788  -77.8492
   41.0221  -77.8492
   41.0654  -77.8492
   41.1087  -77.8492
   41.1154  -77.8492
Run Code Online (Sandbox Code Playgroud)

以下不起作用,而不是在宾夕法尼亚州绘制点,它在南极之外没有绘制任何东西:

output = ge_plot(wypts(:,1),wypts(:,2))
ge_output('wypts.kml',output)
Run Code Online (Sandbox Code Playgroud)

gno*_*ice 3

你的纬度和经度混淆了。的帮助文档ge_plot说第一个输入应该是经度,第二个输入应该是纬度。尝试这个:

output = ge_plot(wypts(:,2),wypts(:,1));
ge_output('wypts.kml',output);
Run Code Online (Sandbox Code Playgroud)