Entries history visualization | 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
Entries history visualization
No permission to create posts
May 22, 2018
4:28 am
Avatar
frenk0

Silver
Members
Forum Posts: 7
Member Since:
April 24, 2018
sp_UserOfflineSmall Offline

how can i make a visualization of how many Entries i recived in a day on a bar graph? something like the the graph you can find in the account page https://thingspeak.com/account but not for every entry the account recived but just the ones from a particular channel. thank you! 🙂

May 23, 2018
2:37 pm
Avatar
cstapels
Moderator
Members


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

See the workflow in the Get Started tutorial, it has some similarities:
https://www.mathworks.com/help/thingspeak/getting-started-with-thingspeak.html

Create a new MATLAB analysis.

Use thingSpeakRead to read the values from your raw channel, read for one day, you can read into a timetable and measure the height.

numEntries=height(thingSpeakRead(channelID,'numDays',1,'OutputFormat','timetable'));

Then use thingSpeakWrite() to write the value of numEntries to another new channel that you create (processed channel).
Then save the analysis and set up a time control to call the analysis you made once per day.

The thingSpeak plot in your processed channel view can be changed to a bar graph using the pencil icon in the upper right of the plot. The default is a line plot.

May 24, 2018
4:45 am
Avatar
frenk0

Silver
Members
Forum Posts: 7
Member Since:
April 24, 2018
sp_UserOfflineSmall Offline

thanks a lot this really helped! i didn't know about the height function!

May 24, 2018
11:48 am
Avatar
cstapels
Moderator
Members


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

Glad I could help!
Let us know if you have an interesting new ThingSpeak application to share.

If you read into a vector such as
[data, times] = thingSpeakRead(channelID,'numDays',1);
Then you should use length(times) .
height() and width() are for timetables.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
26 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:

JoJoktilarDernnida, AgnesMer, JavierLecy, gwenbk2, eloisedq3, AEtedesar

Administrators: Hans: 387, lee: 457