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

Close-button

Top Players in Cody

1008

data points

Description:

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

Time Recorded (time1748) Data (data1748)
16 Apr 2015 09:00:29 [1379371 21520 734801 19950 3437206 19415 343082 18895 33802 18260 2255311 17395 4345310 17305 5349647 15480 2722350 14555 2789428 13360]
15 Apr 2015 09:00:29 [1379371 21520 734801 19920 3437206 19415 343082 18895 33802 18260 2255311 17395 4345310 17265 5349647 15480 2722350 14555 2789428 13360]
14 Apr 2015 09:00:30 [1379371 21520 734801 19920 3437206 19415 343082 18895 33802 18260 2255311 17395 4345310 17235 5349647 15480 2722350 14555 2789428 13360]
13 Apr 2015 09:00:29 [1379371 21520 734801 19910 3437206 19415 343082 18895 33802 18260 2255311 17395 4345310 17235 5349647 15480 2722350 14555 2789428 13360]
12 Apr 2015 09:00:28 [1379371 21520 734801 19890 3437206 19415 343082 18895 33802 18260 2255311 17395 4345310 17265 5349647 15480 2722350 14555 2789428 13360]
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