Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
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

Réponse acceptée

Fabio Battagion
Fabio Battagion le 8 Août 2023
I got answered in another post, forget this

Plus de réponses (0)

Catégories

En savoir plus sur Geographic Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by