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

Close-button

Top Players in Cody

933

data points

Description:

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

Time Recorded (time1748) Data (data1748)
31 Jan 2015 10:00:25 [1379371 20380 3437206 18075 734801 17600 343082 17430 33802 16765 2255311 16405 4345310 15720 2789428 13360 2722350 13125 963450 11390]
30 Jan 2015 10:00:27 [1379371 20360 3437206 18040 734801 17600 343082 17420 33802 16715 2255311 16405 4345310 15690 2789428 13360 2722350 13125 963450 11390]
29 Jan 2015 10:00:27 [1379371 20290 3437206 17970 734801 17530 343082 17300 33802 16715 2255311 16395 4345310 15620 2789428 13360 2722350 13125 963450 11390]
28 Jan 2015 10:00:27 [1379371 20240 3437206 17910 734801 17510 343082 17290 33802 16625 2255311 16355 4345310 15450 2789428 13360 2722350 13125 963450 11390]
27 Jan 2015 10:00:26 [1379371 20230 3437206 17910 734801 17470 343082 17260 33802 16575 2255311 16145 4345310 15240 2789428 13360 2722350 13125 963450 11390]
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 = 10;
vals = zeros(2,n);
for i = 1:n
    profid = str2num(tk{i}{1});
    score = str2num(tk{i}{2});
    vals(1,i) = profid;
    vals(2,i) = score;
end
vals = vals(:)';
updatetrend(vals)
Tags:

    Add Tags


    0 comments