readChannelID = [xxxxxx]; fieldID2 = [1]; % Channel Read API Key readAPIKey = 'xxxxxxx'; %% Read Data %% [a,b,channelInfo]=thingSpeakRead(readChannelID,'ReadKey', readAPIKey); AllPoints=channelInfo.LastEntryID; [data2, timestamp] = thingSpeakRead(readChannelID, 'Field', fieldID2, 'NumPoints', AllPoints, 'ReadKey', readAPIKey); n_data2=filloutliers(data2, "nearest","mean"); %% Visualize Data %% figure ('Position', [0, 0, 1000, 200]); s=scatter(timestamp, n_data2, ".", "MarkerEdgeColor", [0.58 0.75 1]); B=smoothdata(n_data2,"sgolay",160); hold on s=plot(timestamp, B,'LineWidth',2,"Color","black"); ylabel('uT'); title('RM3100 Matlab Visualization'); hold off disp ("SD="+std(n_data2(1:1440)))