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

Close-button

Strongest magnitude recorded over the last 24 hours in Japan. (過去24時間の地震の最大のマグニチュード)

  • Created by: Teja Muppirala
  • Last ran: about 12 hours ago.
  • Auto-run in: about 12 hours.
  • Created on: 14 Feb 2012
  • Liked: 1 time

1032

data points

Description:

Strongest magnitude earthquake in Japan recorded over the last 24 hours.

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

Time Recorded (time1437) Data (data1437)
22 Dec 2014 08:15:16 [4.8]
21 Dec 2014 08:15:20 [5.8]
20 Dec 2014 08:15:14 [5.4]
19 Dec 2014 08:15:14 [5.4]
18 Dec 2014 08:15:16 [4.5]
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);
Tags:

    Add Tags


    0 comments