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

Close-button

Top Players in Cody

967

data points

Description:

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

Time Recorded (time1748) Data (data1748)
06 Mar 2015 10:00:28 [1379371 21290 3437206 19045 734801 18970 343082 18685 33802 17975 2255311 17155 4345310 16585 5349647 13525 2789428 13360 2722350 13125]
05 Mar 2015 10:00:29 [1379371 21250 3437206 19045 734801 18870 343082 18625 33802 17975 2255311 17155 4345310 16585 5349647 13445 2789428 13360 2722350 13125]
04 Mar 2015 10:00:38 [1379371 21250 3437206 19045 734801 18830 343082 18615 33802 17975 2255311 17155 4345310 16585 5349647 13395 2789428 13360 2722350 13125]
03 Mar 2015 10:00:29 [1379371 21100 3437206 19045 734801 18800 343082 18610 33802 17975 2255311 17145 4345310 16585 2789428 13360 5349647 13340 2722350 13125]
02 Mar 2015 10:00:29 [1379371 21100 3437206 19045 734801 18780 343082 18570 33802 17935 2255311 16785 4345310 16585 2789428 13360 5349647 13275 2722350 13125]
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