The Trendy application is being retired in the new year. The new web application, ThingSpeak, offers similar functionality. We recommend that active Trendy users who are looking to create new trends use ThingSpeak. To begin collecting your data in ThingSpeak, please read the tutorial : ThingSpeak for Trendy users. Although Trendy no longer allows the creation of new trends, the application will still remain accessible until January 13, 2016. Until that date, you can view your current trends and download your data. After that date, your data will no longer be accessible. Thanks for using Trendy and we encourage you to check out ThingSpeak.

Close-button

Top 50 Cody players

1267

data points

Description:

This Trends shows the score of 50 top players. You can see how may players are above 2000 points , 5000 points ...

Recently Collected Data (last 5 of 1267) Show All Data

Time Recorded (time1775) Data (data1775)
11 Feb 2016 08:30:09 [2515 2323 2224 2177 2119 2057 2009 1735 1562 1525 1456 1437 1344 1325 1317 1314 1300 1263 1259 1182 1139 1088 1038 1033 1002 1000 9845 9040 8560 8410 8370 8425 8270 7935 7670 7510 7510 7370 7345 7110 7030 6630 6620 6460 6345 6230 6080 6050 6040 5930]
10 Feb 2016 08:30:09 [2516 2323 2224 2176 2118 2057 2009 1735 1562 1525 1456 1437 1344 1325 1317 1314 1300 1263 1259 1182 1139 1088 1038 1033 1002 1000 9845 9040 8560 8370 8425 8320 8270 7935 7600 7510 7510 7370 7345 7110 7030 6630 6620 6460 6345 6230 6080 6050 6040 5930]
09 Feb 2016 08:30:10 [2516 2323 2224 2176 2118 2057 2006 1735 1562 1525 1456 1437 1344 1325 1317 1314 1300 1263 1259 1180 1139 1088 1038 1030 1002 1000 9845 9040 8560 8370 8425 8270 8220 7935 7600 7510 7510 7370 7345 7110 7030 6630 6620 6460 6345 6230 6080 6050 6040 5930]
08 Feb 2016 08:30:11 [2516 2323 2224 2176 2118 2057 2004 1735 1562 1525 1456 1437 1344 1325 1317 1314 1300 1263 1259 1180 1139 1088 1038 1030 1002 1000 9845 9040 8560 8370 8425 8270 8100 7935 7600 7510 7510 7370 7345 7110 7030 6630 6620 6460 6345 6230 6080 6050 6040 5930]
07 Feb 2016 08:30:09 [2516 2323 2224 2176 2118 2057 2004 1735 1562 1525 1456 1437 1344 1325 1317 1314 1300 1263 1259 1180 1139 1088 1038 1030 1002 1000 9845 9040 8560 8370 8425 8270 7990 7935 7530 7510 7510 7370 7345 7110 7030 6630 6620 6460 6345 6230 6080 6050 6040 5930]
% % % Example code added - Retrieve answer count on MATLAB Answers
% % 
% % url = 'http://www.mathworks.com/matlabcentral/cody/players';
% % html = urlread(url);
% % 
% % % FORMAT: 
% % % <a href="/matlabcentral/cody/players/33802-james" title="Score: 3310">
% % 
% % tk = regexp(html,'/matlabcentral/cody/players/(\d+).*?" title="Score: (\d+)"','tokens');
% % n = 50;
% % vals = zeros(2,n);
% % for i = 1:n
% %  
% %     score = str2num(tk{i}{2});
% %    
% %     vals(1,i) = score;
% % end
% % vals = vals(1:2:end)';
% % updatetrend(vals)



% as of 15-Nov-2012 (badges appear) :
url = 'http://www.mathworks.com/matlabcentral/cody/players';
html = urlread(url);

e=findstr('<span class=''sort_highlight''>',html);
for ii = 1 :50
scoring(ii) = str2double(html(e(ii)+29 :e(ii)+32));
end
updatetrend(scoring)
Tags:

    Add Tags


    1 comment

    No, no, no!! I said it was fine as it was!! ;-)
    Now it is broken! :'-(
    Try this:
    % as of 15-Nov-2012 (badges appear) :
    url = 'http://www.mathworks.com/matlabcentral/cody/players';
    html = urlread(url);
    e = regexp(html, '^span class=''sort_highlight''v(\d*?)^/spanvScore','tokens');
    for ii = 1 :50
    scoring(ii) = str2double(e{ii}{1});
    end
    updatetrend(scoring)
    Note: on the regexp '^' must be changed by 'less than' ans 'v' must be changed by 'bigger than' (it was not displayed correctly on this comentar).