%% Return Five Minutes of Data Along with Timestamps and Channel Information
% Retrieve the last five minutes of data from fields 1 and 4 of a public channel, including the timestamp and channel information.

[data,timestamps,channelInfo] = thingSpeakRead(12397,'Fields',[1,4],'NumMinutes',5)

%
% Copyright 2018 The MathWorks, Inc.