Creating Scatter or 2-D line plot for 1 Day data | MATLAB | Forum


Please consider registering

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
Creating Scatter or 2-D line plot for 1 Day data
No permission to create posts
September 19, 2017
12:31 pm

Forum Posts: 8
Member Since:
July 13, 2017
sp_UserOfflineSmall Offline

Hello everyone,

I am new to ThingSpeak and I am getting data from 2 sensors for liquid measurement onto my thingSpeak channel. I want to create a MATLAB visualization that combines data from 2 fields of the channel, combine the data for a day and display it in the form of scatter or 2-d line plot. How can I do that? I am new to MATLAB and thingSpeak. 


I look forward to your answers.


September 29, 2017
4:58 pm

Forum Posts: 10
Member Since:
September 22, 2017
sp_UserOfflineSmall Offline


You have to just clicked "Matlab visualisation" and the choose "Create correlation plot".

You will be on the tab with some code already prepared. In the code you must put in proper place (there are suitable comments) your channel Id and fields' Ids.

In thingSpeakRead() function you will see 'NumPoints' parameter with default value 30. Then you must adjust this number to get values from one day if you think about day as a 24 hour period. 

If you think about one day as exactly one day (one date in calendar) you will have adjust this number as above, but then you will have to filter data to only present date.



Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: Hans, agrisensezm
38 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:

Archieter, JamesExedo, IrbosHich, brodi, kasko, franklin castro

Administrators: Hans: 387, lee: 457