I saw这submission on File Exchange that described measuring soda consumption here at MathWorks. This made a challenge for me: Could I gather a few people together, drink as much Powerade as possible at 4pm Eastern Time on August 5th, and create an outlier data point? We had a few detractors, like洛伦,谁没有适当地欣赏这种社交聚会的健康益处。To passerbyers, it probably looked like we were part of some obscure MATLAB cult. Let's see how we did:
下载数据
%获取7月6日至8月6日的数据。[drinkData, timeStamps] = thingSpeakFetch(7040,'DateRange',,,,{'06 - 2014年7月,,,,'06-August-2014'});powerade = drinkdata(:,3);% Third channel is Powerade%索引到聚会小时idxparty = hour(时间戳)== 16&day(时间戳)== 5&monter(时间戳)== 8;
Comments
要发表评论,请单击here登录您的数学帐户或创建一个新帐户。