Commit ec9225a3 authored by charlotte.kerr's avatar charlotte.kerr

MATLAB Visualisation - 1 day's data

parent eae54c44
readChannelID = 2010296;
fieldID1 = 1;
readAPIKey = 'PVDUGZMNB4DZIJOT';
%% Read Data %%
[data, time] = thingSpeakRead(readChannelID, 'Field', fieldID1, 'NumDays', 1, 'ReadKey', readAPIKey);
%% Visualize Data %%
bar(time, data);
title('Motion Activity In Past 24 Hours');
subtitle('Recorded backwards from time of latest data injection');
xlabel('Time');
ylabel('Motion Status');
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment