Code covered by the BSD License

# Working with Time-Series Data in MATLAB

by

### Abhaya (view profile)

29 Jan 2013 (Updated )

These are the example files for the webinar: "Working with Time-Series Data in MATLAB".

ausmap.m
```% Copyright 2012-2013 The MathWorks, Inc.

figure;
ax = worldmap([-44,-10.3],[112.8,154]);
land = shaperead('landareas', 'UseGeoCoords', true);
geoshow(ax, land, 'FaceColor', [0.5 0.7 0.5])

gridcities =  { 'Cairns (11)', -16.9186, 145.7797, 'red'; ...
'Townsville (12)', -19.2500, 146.8000, 'red'; ...
'Mackay (13)', -21.1454, 149.1885, 'red'; ...
'Gladstone (14)', -23.849, 151.263, 'red'; ...
'Brisbane (15)', -27.4667, 153.0333, 'red'; ...
'Sydney (1)', -33.8683, 151.2086, 'blue'; ...
'Canberra (2)', -35.2828, 149.1314, 'blue'; ...
'Melbourne (3)', -37.7833, 144.9667, 'blue'; ...
'Launceston (4)', -41.4407, 147.1272, 'blue'; ...
'Hobart (5)', -42.8806, 147.3250, 'blue'; ...
'Mount Gambier (6)', -37.8301, 140.7802, 'black'; ...
'Port Pirie (7)', -33.1858, 138.0169, 'black'; ...
'Adelaide (8)', -34.9333, 138.5833, 'black'; ...
'Port Lincoln (9)', -34.7199, 135.8545, 'black'; ...
'Port Augusta (10)', -32.4833, 137.7667, 'black' };

cellfun(@(lat,long,colour) plotm(lat,long,'Marker', '.', 'Color', colour, 'MarkerSize', 20), ...
gridcities(:,2), gridcities(:,3), gridcities(:,4));
cellfun(@(lat,long,name) textm(lat,long,[name,' '],'HorizontalAlignment','right'), gridcities(:,2), gridcities(:,3), gridcities(:,1));
```

Contact us