"Dot indexing is not supported for variables of this type" error with position

Unai Bilbao on 3 Apr 2021
Latest activity Reply by Christopher Stapels on 19 Apr 2021

Hello:

I am trying to read the position (latitude and longitde) from thingSpeakRead and the terror appears: Dot indexing is not supported for variables of this type

This is my code from MATLAB Visualizations code:

data = thingSpeakRead(1299642, 'location',true)
lon = data.Longitude;
lat = data.Latitude;
figure
geoplot(lat,lon,'red-*')
geobasemap("topographic")
title("Ground Truth Trajectory")

And this is the output: data =

     []

Dot indexing is not supported for variables of this type.

Error in Posicion (line 3) lon = data.Longitude;

Someone knows what is happening?

Thank you

Christopher Stapels
Christopher Stapels on 19 Apr 2021

use 'outputformat',timetable' in thingSpeakRead

Tags

No tags entered yet.