ChannelInfo includes Latitude and Longitude, but they are not usable in geoscatter( )

1 次查看(过去 30 天)
If I use this line of code:
[data,timestamps,channelInfo] = thingSpeakRead(12397,Fields=[1,4],NumMinutes=5)
I correctly see values, timestamps and Channel Info. In particular, Channel info shows the fields: Latitude and Longitude with some correct values (inserted via "channel setting" when the channel was created).
Now, if I run the following example using geoscatter(...):
mapData = thingSpeakRead(12397,'Location',1,'numpoints',37,'location',1,'outputformat','timetable');
geoscatter(mapData.Latitude,mapData.Longitude,'r');
I don't get any position on the map, since the latitude and longitude values are: NaN
So the question is: should I add 'latitude' and 'longitude' any time I write a data in the channel? So, what are the two fileds 'latitude' and 'longitude' of Channel Info used for? are they not available for the geoscatter() function?
Thanks
Fabio

采纳的回答

Fabio Battagion
Fabio Battagion 2023-8-8
I got answered in another post, forget this

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geographic Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by