How to pick data from time range of every day?
Show older comments
Hello!
How do I pick up a data in the specific time period through all the days back?
This is my code so far...
% set time range from 8H to 12H of every day
S = timerange('08:00:00','12:00:00');
% Read Temperature Data
data = thingSpeakRead(readChannelID,'Fields',TemperatureFieldID, ...
'timerange',S, 'ReadKey',readAPIKey);
% Calculate the maximum and minimum temperatures in the period
[maxTempF] = max(data);
[minTempF] = min(data);
I would be so happy for any ideas :)
Accepted Answer
More Answers (0)
Communities
More Answers in the ThingSpeak Community
Categories
Find more on ThingSpeak in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!