All Data Download to MATLAB | MATLAB | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
All Data Download to MATLAB
No permission to create posts
December 1, 2017
6:40 pm
Avatar
fcoppo
New Member
Members
Forum Posts: 1
Member Since:
December 1, 2017
sp_UserOfflineSmall Offline

Hi!

How do I download all the data from the channel and open it in MATLAB? I saw the download in CSV but it's not ok for MATLAB. I tried webread with the json page but it only has 100 data points.Cry

Could you please help?

Channel ID is: 372152.

Thank you!

December 2, 2017
1:29 pm
Avatar
Vinod

MathWorks
Members
Forum Posts: 223
Member Since:
May 1, 2016
sp_UserOfflineSmall Offline

You can use the ThingSpeak Support Toolbox from desktop MATLAB to directly pull the data into MATLAB without having to go through a file. You can also use the same functions in MATLAB apps on ThingSpeak.

December 4, 2017
1:21 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 365
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Using thingSpeakRead() in the ThingSpeak Support Toolbox is the easiest way. 

If you do need to use the REST command to get channel information with webread,  you can use the results parameter to increase the number of entries up to 8000 

GET https://api.thingspeak.com/channels/9/fields/1.json?results=8000
Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
33 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

JudestAboth, concettazx4, lyndarf60, caseybo16, iodiree, emiliacz4

Administrators: Hans: 387, lee: 457