data points
| Time Recorded (time1623) | Data (data1623) |
|---|---|
| 21 May 2013 05:30:25 | [5.5] |
| 20 May 2013 05:30:24 | [6.5] |
| 19 May 2013 05:30:24 | [6.5] |
| 18 May 2013 05:30:30 | [6.5] |
| 17 May 2013 05:30:27 | [7.5] |
url = 'http://espn.go.com/mlb/standings';
page = urlread(url);
tokens = regexp( page, 'Oakland[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