Since you are new, let us show you how Trendy works.

Close-button

Top 50 Cody players

921

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 921) Show All Data

Time Recorded (time1775) Data (data1775)
06 Mar 2015 08:30:11 [2129 1904 1894 1868 1797 1715 1658 1352 1336 1312 1165 1163 1139 1135 1041 1037 1010 1006 1000 9870 9805 9190 9040 8930 8370 8350 8005 7935 7550 7365 7340 7190 7030 6630 6355 6230 6080 6050 5870 5780 5755 5680 5650 5550 5190 5125 5020 4970 4780 4725]
05 Mar 2015 08:30:12 [2125 1904 1886 1862 1797 1715 1658 1344 1336 1312 1164 1163 1139 1135 1041 1037 1010 1006 1000 9840 9805 9190 9040 8920 8370 8350 7975 7935 7550 7365 7340 7190 7030 6630 6355 6230 6080 6050 5870 5780 5755 5680 5650 5550 5190 5125 5020 4970 4780 4725]
04 Mar 2015 08:30:12 [2125 1904 1883 1861 1797 1715 1658 1339 1336 1312 1163 1163 1139 1135 1039 1037 1010 1006 1000 9830 9805 9190 9040 8920 8370 8350 7975 7935 7550 7365 7330 7190 7030 6630 6355 6230 6080 6050 5870 5780 5755 5680 5650 5550 5190 5125 5020 4970 4780 4725]
03 Mar 2015 08:30:12 [2110 1904 1880 1861 1797 1714 1658 1336 1334 1312 1163 1162 1139 1135 1039 1037 1010 1006 1000 9805 9800 9190 9040 8920 8370 8350 7975 7935 7560 7365 7330 7190 7030 6630 6355 6230 6080 6050 5870 5780 5755 5680 5650 5550 5190 5125 5020 4970 4780 4725]
02 Mar 2015 08:30:12 [2110 1904 1878 1857 1793 1678 1658 1336 1327 1312 1163 1158 1139 1135 1039 1037 1010 1005 1000 9805 9790 9190 9040 8920 8370 8350 7975 7935 7560 7365 7320 7190 7030 6630 6355 6230 6080 6050 5870 5780 5755 5680 5650 5550 5190 5125 4970 4970 4780 4725]
% % % 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).