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 file named lastnameExam where "lastname" is replaced by your last name. For example, I would name my file HaskinsExam 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 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
Use the fprintf command to print to the screen the number of months with temperatures greater than 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
b The definite integral of the equation above from to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
