Question: Create an m file named lastname _ Exam 2 where lastname is replaced by your last name. For example, I would name my file Haskins

Create an m file named lastname_Exam 2 where "lastname" is replaced by your last name. For example, I would name my file Haskins_Exam2. Make sure that this file includes the standard MatLab header that we have been using and fill in the entries appropriately. You will use this file to record your answers to the remainder of the exam questions. Number your comments identifying each question based on the question numbers in this exam handout.
Create the following matrix in MatLab (There should be 12 values total). These are the monthly average temperatures in Potsdam, NY.
Write a for loop that will add all the temperatures together (adding one month's temperature per loop) and then outside the loop divide by the total number of temperatures to determine the average temperature.
Add a selection structure to the for loop that will determine the total number of months with average temperatures greater than 60.
Use the fprintf command to print to the screen the number of months with temperatures greater than 60. This should present with no decimals and also update if the Temps matrix is changed to represent a different location.
Use MatLab to determine the following
a. The derivative of the equation 5x4+3x3+6x2-7x+2=0
b. The definite integral of the equation above from -2 to 6
Create an m file named lastname _ Exam 2 where

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!