rene in Discussions
上次活动时间: 2022-12-1

Hello, I need help with this code to show the longitude and latitude from the neo6m module. When the map is displayed, it looks very close. How can I fix it? It is for a university project I hope you can help me thanks https://thingspeak.com/apps/matlab_visualizations/488254 code: lat = thingSpeakRead(1962341,'Fields',3,'ReadKey','ZHIVMUHTJXI4xxxx','NumPoints',10,'Timeout',50); lon = thingSpeakRead(1962341,'Fields',4,'ReadKey','ZHIVMUHTJXI4xxxx','NumPoints',10,'Timeout',50); geoscatter(lat,lon,'h'); geobasemap('satellite'); edit zoom map latitude longitude I would suggest using a single read. myData=thingSpeakRead(...'fields','[3,4]'); myMap= geoscatter(myData(:,1),myData(:,2)); You can change the zoom level on the map, but it should default to show the scatter of your points. you can use geolimits to change the limits geolimits(2*[min(myData(:,1) max(myData(:,1))],[min(myData(:,2) max(myData(:,2))]); % not tested syntax thanks for the answer i solve this with this code ax=gca; ax.ZoomLevel=17; longitude latitude thingspeakread geobasemap zoom

关于 ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.