May 21, 2018
i really looking forward for some help.
I try to calculate the time difference between two RFID loggin Data´s. I mapped the UID´s from the cards with "1". So ich only get 1 on y-axis and the time on x-achsis.
See here: https://thingspeak.com/channels/497889
I really dont´t know what function to take for calculating Time 2 - Time 1 = min
etime?timeit? Tic? Toc? Plot time ? Datediff ? Diff ?
and how do i get what i need ? The introductions from this functions are not givin examples from that what i want :-/ Always the last value of the table minus the second last value...
Can i take this code for starting ? ( And underneath the function i need...)
readChannelID = 497889;
% TODO - Replace the  with the Field ID to read data from:
fieldID1 = 1;
% Channel Read API Key
% If your channel is private, then enter the read API
% Key between the '' below:
readAPIKey = 'XXX';
%% Read Data %%
% Read first data variable
[data,timestamps] = thingSpeakRead(497889,'Fields',,'NumMinutes',360)
then i get something like this:
4×1 datetime array
Many thanks for some help in advance 🙂
January 30, 2014
March 7, 2017
When you read the data, MATLAB takes care of interpreting the times and you can subtract the directly.
I sometimes prefer to use a timetable:
Does that help you do what you wanted to do?
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:qkpham, SANGAMNATH B, swatiiot, email@example.com, Romi, Drakan01
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457