Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

Fabio Battagion
Fabio Battagion am 8 Aug. 2023
I got answered in another post, forget this

Weitere Antworten (0)

Kategorien

Mehr zu Geographic Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by