Since it's your first time here, let us show you how Trendy works.

Close-button

Top Players in Cody

  • Created by: Ned Gulley
  • Last ran: about 8 hours ago.
  • Auto-run in: about 15 hours.
  • Created on: 06 Jul 2012

321

data points

Description:

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

Time Recorded (time1748) Data (data1748)
21 May 2013 09:00:33 [2789428 11025 2722350 10495 1379371 9450 33802 8560 343082 8170 869884 8150 734801 8070 2391181 7975 870409 7720 3354683 7590]
20 May 2013 09:00:37 [2789428 11025 2722350 10495 1379371 9450 33802 8560 343082 8170 869884 8150 734801 8035 2391181 7975 870409 7710 3354683 7550]
19 May 2013 09:00:33 [2789428 11025 2722350 10495 1379371 9450 33802 8560 343082 8170 869884 8120 734801 8015 2391181 7975 870409 7700 3354683 7500]
18 May 2013 09:00:33 [2789428 11025 2722350 10495 1379371 9450 33802 8560 343082 8170 869884 8080 734801 8015 2391181 7975 870409 7610 3354683 7390]
17 May 2013 09:00:33 [2789428 11025 2722350 10495 1379371 9450 33802 8510 343082 8170 869884 8080 734801 8015 2391181 7975 870409 7610 3354683 7350]
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:

    0 comments