Question: How do I solve Problem number 1 in Matlab? Also please explain how I can recieve bonus points for this problem and how to print

How do I solve Problem number 1 in Matlab? Also please explain how I can recieve bonus points for this problem and how to print all the dates the temperature is higher for Denver than New york in one line.  

 

Chrome File Edit View History Bookmarks Profiles Tab Window Help Stats Textbook

Download HW: Class X 11 -o Class 22 X C Problem 4

Chrome File Edit View History Bookmarks Profiles Tab Window Help Stats Textbook Download HW: Class X 11 -o Class 22 X C Problem 4 X | Class_22 X C Write a M x | Samantha x | Johnatho x | Dashboar x | Pearson x | Course H AP LIT G Gmail Obuckeyelink buckeyemailosu-my.sharepoint.com/personal/li_537_osu_edu/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fli_537_osu_edu%2FDocuments%2F%21%20ENGR%201181_AU2023_MNS%... Q Member Institutio... ENGR 1181 | Class 22: Advanced loops and Application You are being assigned two problems and one extra-credit problem. Do all problems in one script file: Class_22_App.m Include comment statements to help organize your script file. Include the standard header. Problem 1 The daily high temperature (F) in New York City and Denver, Colorado, during the month of January 2014 is given in the data file "Class22_temperature.txt", where the first column is the temperature of New York, and the second column is the temperature of Denver (data from the U.S. National Oceanic and Atmospheric Administration). The elements in the array are in the order of the days in the month. Class_22_Application.pdf In the script file, perform the following tasks: 1. Load the data. 1. 2. Use the arrays in logical expression method (element-by-element vector operation) to solve the following questions (2-4). You can use the built-in functions such as sum(), mean(), etc. Do not use loops! 2. Determine the average temperature for the month in each city. Use fprintf() to display the results (round the temperature to the nearest integer using the function round()). 3. Determine the number of days that the temperature was above the average in each city. Use fprintf() to display the results. 4. Determine on which days that the temperature in Denver was higher than the temperature in New York. Use fprintf() to display the results. Problem 2 The Taylor series expansion for sin(x) is (bonus +2) Use loops (for or while) w/ if conditional statements to solve this problem for extra credits. Do not use built-in functions sum() and mean(). Use the running sum algorithm to calculate the sum of an array. sin (x) = x- NOV 13 x3 x5 3! 5! 7! n=0 where x is in radians. Write a MATLAB program that determines sin(x) using the Taylor series expansion. Define the angle as 195 degrees. Use a loop for adding the terms of the Taylor series. If an is the nth term in the series, then the sum Sn of the n terms is Sn = Sn-1 + an 3. In each pass, calculate the estimated error E given by Sn E = Sn-1 m (-1)" (2n + 1)! 2n+1 tv A B 10 W Xo Mail - Zaf X O ED Info | Homewor Mon Nov 13 4:22 PM 1/1 G + All Bookmarks X 2023-11...2.25 PM 2023-11...0.27 PM 2023-11...1.03 AM 2023-10...5.16 PM

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 Databases Questions!