%% Return Five Minutes of Data in a Timetable
% Read the last five minutes of data from fields 1 and 4 of a public channel, and return the data in a table.

data = thingSpeakRead(12397,'Fields',[1,4],'Numminutes',5,'OutputFormat','TimeTable')

%
% Copyright 2018 The MathWorks, Inc.