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

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
Creating Scatter or 2-D line plot for 1 Day data
Avatar
rushanarshad

Silver
Forum Posts: 8
sp_UserOfflineSmall Offline
1
September 19, 2017 - 12:31 pm
sp_Permalink sp_Print

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.

Thanks

Avatar
trach555

Silver
Forum Posts: 10
sp_UserOfflineSmall Offline
2
September 29, 2017 - 4:58 pm
sp_Permalink sp_Print

Hi,

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.

Regards

gc 

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

dannymm1

KamorkasOr

GRV2903

Jusikaclaiz

Raymondpoers

ScottDus

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee