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

MATLAB Visualisation Code - 7 days' data

parent ec9225a3
readChannelID = 2010296;
fieldID1 = 1;
readAPIKey = 'PVDUGZMNB4DZIJOT';
%% Read Data %%
[data, time] = thingSpeakRead(readChannelID, 'Field', fieldID1, 'NumDays', 7, 'ReadKey', readAPIKey);
%% Visualize Data %%
bar(time, data);
title('Motion Activity In Past Week');
subtitle('Recorded backwards from point of last 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