Plot with kmlwrite without any name(not even the default)
8 次查看(过去 30 天)
显示 更早的评论
Hi!I need to plot my results on Google Earth.They are numbers referring to points with known coordinates.Each value provide me a colored point as a result and I don't want to plot any name.
I have tried name='' but it uses the default 'point 1' 'point 2' etc
Is there a way to achieve that?
2 个评论
Geoff Hayes
2015-1-19
Dimitris - I think that you need to post more of your code so that we can get an idea of what you are trying to do. Your subject line mentions kmlwrite but you have not indicated how you are using it (i.e. the code) in the body of your question. Please elaborate.
回答(1 个)
Mehmet Emin
2016-7-22
Hi,
I had the same problem and just solved it know. First off all use kmlwritepoint instead of kmlwrite, recommended from mathworks.
For your code,
you may take the size of your string first,
[m,n] = size(lat);
the result will be something like m=1 , n = x which x not equal 1.
For the 'Name' arguments the data types are defined as char and cell. So you have to create an array whit no chars with the size n.
Name = blanks(n);
This will create that array with blank chars.
And now you can use your kmlwritepoint function like that;
kmlwritepoint(filename, lat, lon, 'Icon',icon,'IconScale',iconscale, 'Name', name, 'Color', color);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Weather and Atmospheric Science 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!