Write a MATLAB program that prompts the user to enter a day of the year in mm-dd format: February 4 would be input as 02-04. Plot the daily lows and highs for that day of all the years from 1869 to 2023 at two different smoothing levels specified by the user. Use moving mean smoothing for the 1st level of smoothing, and Gaussian smoothing for the 2nd level of smoothing. There should be 4 curves: Daily Lows with 2 levels of smoothing, and Daily Highs with 2 levels of smoothing. Plot the curves with different colors, and use a thicker line for the level 2 smoothed curve. Label the x axis with the years. Don't hard code the years, get them from the data file. Label the title with the day and years plotted and and the sub-title with the smoothing levels. Don't hard code the numbers. Get the numbers from the data file and the user input.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Write a MATLAB program that prompts the user to enter a day of the year
in mm-dd format: February 4 would be input as 02-04.
Plot the daily lows and highs for that day of all the years from 1869 to
2023 at two different smoothing levels specified by the user. Use moving
mean smoothing for the 1st level of smoothing, and Gaussian smoothing for
the 2nd level of smoothing. There should be 4 curves: Daily Lows with 2
levels of smoothing, and Daily Highs with 2 levels of smoothing. Plot the
curves with different colors, and use a thicker line for the level 2
smoothed curve.
Label the x axis with the years. Don't hard code the years, get them
from the data file.
Label the title with the day and years plotted and and the sub-title with
the smoothing levels. Don't hard code the numbers. Get the numbers from
the data file and the user input.
Transcribed Image Text:Write a MATLAB program that prompts the user to enter a day of the year in mm-dd format: February 4 would be input as 02-04. Plot the daily lows and highs for that day of all the years from 1869 to 2023 at two different smoothing levels specified by the user. Use moving mean smoothing for the 1st level of smoothing, and Gaussian smoothing for the 2nd level of smoothing. There should be 4 curves: Daily Lows with 2 levels of smoothing, and Daily Highs with 2 levels of smoothing. Plot the curves with different colors, and use a thicker line for the level 2 smoothed curve. Label the x axis with the years. Don't hard code the years, get them from the data file. Label the title with the day and years plotted and and the sub-title with the smoothing levels. Don't hard code the numbers. Get the numbers from the data file and the user input.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education