data points
Strongest magnitude earthquake in Japan recorded over the last 24 hours.
| Time Recorded (time1437) | Data (data1437) |
|---|---|
| 18 May 2013 07:15:22 | [5.9] |
| 17 May 2013 07:15:20 | [5.1] |
| 16 May 2013 07:15:23 | [5.1] |
| 15 May 2013 07:15:21 | [3.8] |
| 14 May 2013 07:15:20 | [6.8] |
data = urlread('http://typhoon.yahoo.co.jp/weather/jp/earthquake/');
startpos = regexp(data,'tr bgcolor="#ffffff" valign=middle');
%startpos = regexp(data,'tr bgcolor="#ffffff" valign')
maxval = 0;
for n = 1:numel(startpos)
startpos2 = strfind(data(startpos(n):end) , 'td align=center' );
newval = sscanf( data(startpos(n)+startpos2(2)+15:end) ,'%f');
if newval > maxval
maxval = newval;
end
end
count = numel(startpos) + 1i*maxval;
count = imag(count);
updatetrend(count);
0 comments