data points
| Time Recorded (time1607) | Data (data1607) |
|---|---|
| 24 Feb 2013 09:00:33 | |
| 23 Feb 2013 09:00:29 | [0.5] |
| 22 Feb 2013 09:00:31 | [0] |
| 21 Feb 2013 09:00:33 | [9.5] |
| 20 Feb 2013 09:00:30 | [2] |
url = 'http://espn.go.com/mlb/standings';
page = urlread(url);
tokens = regexp( page, 'Baltimore[a-z<>="''/ ]+\d+[a-z<>="''/ ]+\d+[a-z<>="''/ ]+\.\d+[a-z<>="''/ ]+([\d+-.]+)', 'tokens', 'once');
if strcmp(tokens{1}, '-')
gb = 0;
else
gb = str2double(tokens{1});
end
updatetrend(gb);
0 comments