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

Close-button

Highest magnitude earthquake past day

  • Created by: Semin Ibisevic
  • Last ran: about 3 hours ago.
  • Auto-run in: about 21 hours.
  • Created on: 03 Jun 2012

683

data points

Description:

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

Time Recorded (time1714) Data (data1714)
27 Aug 2014 06:15:21 [5.6]
26 Aug 2014 06:15:21 [5.7]
25 Aug 2014 06:15:22 [6.9]
24 Aug 2014 06:15:21 [6.4]
23 Aug 2014 06:15:22 [5.7]
% -------------------------
% import and prepare data

url = 'http://earthquake.usgs.gov/earthquakes/feed/csv/all/day';
block = urlread(url);
fmt = '%s %s %s %s %s %s %s %s %s %s %s %s %s';
readData = textscan(block, fmt, 'delimiter', ',');


% -------------------------
% process
T = size(readData{5},1);
magnitudes = zeros(T-1,1);
for t = 2:T
magnitudes(t-1) = str2double( char( readData{5}(t) ) );
end

maxMagn = max(magnitudes);

updatetrend(maxMagn );
Tags:

    Add Tags


    0 comments