Exporting kml file of lines

조회 수: 1 (최근 30일)
Kim
Kim 2012년 4월 23일
I am working on exporting kml file with series of coordinates which are joined together but I keep receiving this error? How can I solve this??
??? Error using ==> kmlwrite>addData at 665
Function KMLWRITE expected its second input, S or ADDRESS,
to be one of these types:
struct, char, or string cell array
Instead its type was double
Error in ==> kmlwrite at 193
addData(kmlDoc, numDataArgs, dataArgs, options, userSupplied);
____________________________________
My Code
____________________________________
M = xlsread('YCKMap.xlsx');
waypoints =[M(:,2), M(:,3)];
[lttrk,lntrk] = track('rh',waypoints,'degrees');
figure(),geoshow(lttrk,lntrk,'DisplayType','line', 'color','r');
filename = '560620.kml';
kmlwrite(filename, lttrk,lntrk);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by