Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function weatherdatasmoothed()
- %by hayden sutherland
- % 16242270
- % the purpose of this function is plot several months worth of weather data on a graph
- %get octave to download the data from file
- InputData=load('I:\MATLAB\PerthWeatherDataApril08.txt');
- % get octave to select certain collumns of data
- Daynum=InputData(1:end,1);
- Averagewind=InputData(1:end,4)
- Gustspeed=InputData(1:end,5)
- % input data into graph
- plot(Averagewind,Daynum,'g-x')
- hold on
- plot(Gustspeed,Daynum, 'r-x')
- hold on
- %create the specifics of graph
- axis([-1 35,3 8])
- xlabel('wind Km/h')
- ylabel('day and decimal of time')
- legend('green= Average wind speed, red= maxium gust speed')
- Avesmooth=datasmootherweathermod(Averagewind)
- Gustsmooth=(datasmootherweathermod(Gustspeed))
Advertisement
Add Comment
Please, Sign In to add comment