Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.17 KB | None | 0 0
  1. %% loading datasets for the three King's County Beaches
  2. load Madison.csv
  3.  
  4. load Madrona.csv
  5.  
  6. load Meydenbauer.csv
  7.  
  8. %% Data variables
  9. dayMadison = Madison(:,1); % info from column one
  10. eColiMadison = Madison(:,2);
  11. coliformMadison = Madison(:,3);
  12.  
  13. %% plot the bacteria for madison park beach
  14.  
  15. figure
  16. hold on
  17. plot(dayMadison,eColiMadison);
  18. plot(dayMadison,coliformMadison,'-ok');
  19. hold off
  20. xlabel('Days');
  21. ylabel('Bacteria Count');
  22. Title('Bacteria in Madison Park Beach');
  23. legend({'Ecoli','Fecal Coliform'});
  24. set(gca,'XTick',[3,20,34,50,64,81,95]);
  25. set(gca,'XTickLabel',{'5/15','6/1','6/15','7/1','7/15','8/1','8/15'});
  26.  
  27. %% defining temperature variable
  28.  
  29. tempMadison = Madison(:,4);
  30. %% compare bacteria counts and water temperature at Madison Park Beach
  31.  
  32. figure
  33. ax= plotyy(dayMadison,eColiMadison,dayMadison,tempMadison);
  34. xlabel(ax(1),'Days');
  35. ylabel(ax(1),'Ecoli Bacteria Count');
  36. ylabel(ax(2),'Temperature C^o');
  37. Title('Bacteria in Madison Park Beach');
  38. legend({'Ecoli','Fecal Coliform'});
  39. %set
  40. %set
  41. %%
  42.  
  43. daysMadrona = Madrona(:,1);
  44. daysMeydenbaur = Meydenbaur(:,1);
  45. eColiMadrona = Madrona(:,2);
  46. eColiMeydenbaur = Meydenbaur(:,2);
  47.  
  48. %%
  49.  
  50. figure
  51. hold on
  52. plot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement