Background: Toxic heavy metals emitted by industrial activities in the mid-latitudes are transported through the atmosphere and deposited in Earth’s polar regions. Deposited materials can enter the food chain; and the effects of bio-concentration and bio-magnification may subsequently threaten the health of humans and the health of Arctic ecosystems. The file toxic.csv contains continuous, annually-averaged deposition records (for years dating between 1772 and 2003) of highly toxic thallium, cadmium, and lead. This data indicates higher atmospheric deposition in the early 20th century: data from the early 1900s indicates a tenfold increase in deposition from preindustrial levels, but levels have since decreased 20-50%. Tracer measurements indicate that coal burning in North America and Europe was the likely source of these metals in the Arctic after 1860.
This task is meant to reinforce the concepts of using MATLAB to look through arrays efficiently and effectively. In MATLAB, there are ways to use functions and relational operators to analyze entire arrays with few commands, and there are more classical approaches (using repetition structures and conditional blocks) to analyze arrays one element at a time. In this assignment you will be doing each task twice: Once using MATLAB array notation and once using for loops with conditional statements.
You may load the data into MATLAB with the command load toxic.csv. The data will then be in an array called toxic. The column information represents:
Column 1: Year AD
Column 2: Cadmium (nanograms per gram)
Column 3: Lead (nanograms per gram)
Column 4: Thallium (nanograms per gram)
Using MATLAB, create a script file as indicated. Your script should be commented for sufficient comprehension of any variables and associated units. Submit paper copies of your published script.
Section 1: Array Notation
Complete the following (1) WITHOUT the use of for loops or conditional blocks [i.e. if-elseif…else-end]; (2) you may use syntax requiring the dot operator; (3) you may use relational operators on arrays but you may NOT use them on scalars. (4) you may NOT hard code row numbers in your script (e.g. the1700s =1:28; cannot be used) instead use the find function, if needed.
Section 2: Repetition Structures and Conditional Blocks
Complete the following (1) WITH the use of for loops and conditional blocks [i.e. if-elseif…else-end]; (2) you may NOT use any syntax requiring the dot operator; (3) you may use relational operators on scalars but you may NOT use them on arrays. (Relational operators include: <, >, <=, >=, ==, ~=) (4) You may reuse the years that were found using the find function in Section 1.
When considering the difference between return on assets (ROA) and return on common shareholders' equity (ROE), which of the following statements is incorrect? (Points : ...Dec 03 2019
Prepare a schedule of cash flows measured in real dollars. Include the initial acquisition and the cost savings for each of the next eight years.Nov 26 2019
Now, assume that Heather's credit union pays a compound interest rate of 9.8% compounded annually. All other things being equal, how much will Heather have in her account...Aug 16 2020
On January 1, 2013, Berry Co. issued $180,000 of five-year, 6 percent bonds at 96 ½. Interest is payable annually on December 31. The discount is amortized using the stra...Apr 20 2020
Why do we worry about ethics in school? What is the point of teaching young people to be honest? Why do we impose penalties for cheating? How does cheating affect those w...Jul 25 2021
Activist hedge fund Marcato Capital Management, backed by Blackstone Group and billionaire William Ackman, is shutting down as assets have shrivelled after two years of p...Apr 14 2021
A one-sack trial mix that meets specification requirements has the proportions shown mixer with no overload using an integer number of sacks of cement. Assume that the ag...Jul 22 2020
A dairy allocates the cost of unprocessed milk to the production of milk, cream, butter and cheese. For the current period, unprocessed milk was purchased for $240,000, a...May 04 2018
Which of the following is not a part of the human resource management function in most organizations? (a) Sanctioning (b) Performance appraisal (c) Training (d) Human...Apr 03 2018
Your firm is considering Dulluny d lle Ulice Compe cash flow for the use of this land is: O A. $140,000 O B. $0 O C. $600,000 OD. $740,000Aug 16 2020