Guest User

Untitled

a guest
May 1st, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.76 KB | None | 0 0
  1. function weatherdatasmoothed()
  2.  
  3. %by hayden sutherland
  4. % 16242270
  5. % the purpose of this function is plot several months worth of weather data on a graph
  6.  
  7. %get octave to download the data from file
  8. InputData=load('I:\MATLAB\PerthWeatherDataApril08.txt');
  9.  
  10. % get octave to select certain collumns of data
  11. Daynum=InputData(1:end,1);
  12. Averagewind=InputData(1:end,4)
  13. Gustspeed=InputData(1:end,5)
  14.  
  15. % input data into graph
  16. plot(Averagewind,Daynum,'g-x')
  17.  hold on
  18.  
  19. plot(Gustspeed,Daynum, 'r-x')
  20. hold on
  21.  
  22.  
  23. %create the specifics of graph
  24. axis([-1 35,3 8])
  25. xlabel('wind Km/h')
  26. ylabel('day and decimal of time')
  27. legend('green= Average wind speed, red= maxium gust speed')
  28.  
  29. Avesmooth=datasmootherweathermod(Averagewind)
  30.  
  31. Gustsmooth=(datasmootherweathermod(Gustspeed))
Advertisement
Add Comment
Please, Sign In to add comment