f. Increase the violate2015 counter by one when the condition is NOT met [1point] g. Use fprintf command and print "Ozone concentration on xxxx was xxxxxx ppm and it meets the 2015 standard" if ozone concentration is less than or equal to 0.070 ppm [1 point] h. Use fprintf command and print "Ozone concentration on xxxx was x.xxxx ppm and it violates the 2015 standard" if ozone concentration is more than 0.070 ppm [1 point] i. Use fprintf command to print the number of years with concentration less than or equal to 0.070 ppm. "The average ozone concentration was in compliance with the 2015 standard for X years." [1 point] j. Use fprintf command to print the number of years with concentration above 0.070 ppm. "The average ozone concentration violated the 2015 for X years." [1 point] Create a vector named ozoneCone that ONLY contains the concentration column of ozoneData matrix (hint-use
ENGR 1811 Individual Project 1 Ground level ozone is an air pollutant that can harm our health. Breathing ozone can cause a variety of health problems including chest pain, coughing, throat irritation, and airway inflammation. The National Ambient Air Quality Standards (NAAQS) for ground-level ozone specify a maximum allowed measurement for ozone to be present in outdoor air. The 2015 primary NAAQS for ozone is 0.070 parts per million (ppm). The attached files (Ozone.txt and Ozone.xlsx) shows the average ground level ozone concentration (in ppm) from 1980 to 2018. The first column is the year and the second column is the ozone concentration (source: https://www.epa.gov/air-trends/ozone-trends). In this project, you are asked to analyze the data using MATLAB and MS Excel. MATLAB (30 points) 1. Create a function file named ozoneAvg.m that calculate the average of the numbers in a given array (the function has one input and one output arguments) [1 point] 2. Create a script file and name it ozone Analysis.m (save it in the same folder with ozoneAvg.m function) [1 point] 3. Upload the Ozone.txt file to ozoneAnalysis.m and assign it to an array named ozoneData [1 point] 4. Use a for-end loop and if-end statements to find all the years with ozone concentration more than 0.075 ppm [hint: use ozoneData (k,1) and ozoneData (k,2) appropriately in the loop] a. Create a counter that count the number of years with ozone concentration above 0.075 ppm, name it above075 [1 point] b. Set up the for-end loop [1point] c. set up the if-end conditional statement [1point] d. Increase the above075 counter by one when the condition is met [1point] e. Use fprintf command to print each year with concentration above 0.075 and the average ozone concentration on that year. "The average concentration on xxxx was x.xxxx ppm" [1 point] f. Format the concentration so it is printed as x.xxxx for each year [1 point] g. Use fprintf command to print the number of years with concentration above 0.075 ppm. "The average ozone concentration was higher than 0,075 ppm for X years." [1 point] 5. Use a for-end loop and If-else-end statements to go through ozoneData. [hint: use ozoneData (k, 1) and ozoneData (k.2) appropriately in the loop] a. Create a counter to find the number of years that meet 2015 standard, name it meet2015. [1 point] b. Create a counter to find the number of years that does not meet 2015 standard, name it violate2015 [1 point] c. Set up the for-end loop [1point] d. set up the if-else-end conditional statement [1 point] e. Increase the meet2015 counter by one when the condition is met [1point]