Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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

Respuesta aceptada

Fabio Battagion
Fabio Battagion el 8 de Ag. de 2023
I got answered in another post, forget this

Más respuestas (0)

Categorías

Más información sobre Geographic Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by