Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function weatherplot()
- %%%%%%%%%%%%%%%%%%%%%%
- %Benjamin Buxton
- %Date:: 28/04/12
- %Input::None
- %Output:: Screen (+graph)
- %This program loads weather data as an ascii text file in a specific format of a specific directory and plots average wind speed and average gust speed against days for a period
- %%%%%%%%%%%%%%%%%%%%%%
- weatherDat=load('C:\Users\Ben\Documents\School\2012\SciComputing\Ex6\PerthWeatherDataApril08.txt');
- numRows=size(weatherDat,1);
- dayNum=weatherDat(1:1:numRows, 1);
- avWindSpeed=weatherDat(1:1:numRows,4);
- gustSpeed=weatherDat(1:1:numRows,5);
- plot(dayNum, avWindSpeed)
- hold on
- plot(dayNum, gustSpeed)
Advertisement
Add Comment
Please, Sign In to add comment