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

Close-button

Hourly Seismicity DATA - SOURCE : USGS

This trend is broken.

Your code has an error or you are requesting a feature that is not yet available.

158

data points

Error

Description:

#Collects the Real time Hourly Seismicity Data - SOURCE : USGS Collects the Real time daily Seismicity Data - SOURCE : USGS

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

Time Recorded (time2057) Data (data2057)
12 Feb 2014 05:07:37 NaN
11 Feb 2014 05:02:11 [177]
10 Feb 2014 05:02:09 [208]
09 Feb 2014 05:02:01 [209]
08 Feb 2014 05:02:00 [188]
% Example code added - Retrieve answer count on MATLAB Answers

% url = 'http://www.mathworks.com/matlabcentral/answers';
%count = urlfilter(url, 'Refine by Status');
% updatetrend(count);

% -------------------------
% import, prepare and PLOT data

url = 'http://earthquake.usgs.gov/earthquakes/feed/csv/all/day';
%url_hr='http://earthquake.usgs.gov/earthquakes/feed/csv/all/hour'
%block_hr = urlread(url_hr);
block_hr = urlread(url);

fmt_hr = '%s %s %s %s %s %s %s %s %s %s %s %s %s';
readData_hr = textscan(block_hr, fmt_hr, 'delimiter', ',')


% -------------------------
% count

T_hr = size(readData_hr{1},1);
updatetrend(T_hr);
x_data=char(readData_hr{2});
y_data=char(readData_hr{3});

x_data=str2num(x_data(2:end,:));
y_data=str2num(y_data(2:end,:));
Tags:

    Add Tags


    0 comments