필터 지우기
필터 지우기

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