Question: PLEASE ANSWER USING MATLAB 1. The file called sunspots.txt contains the observed number of sunspots on the Sun for each month since January 1749. The

PLEASE ANSWER USING MATLAB 1. The file called "sunspots.txt" contains the observednumber of sunspots on the Sun for each month since January 1749.The file contains two columns of numbers, the first being the month,PLEASE ANSWER USING MATLAB

1. The file called "sunspots.txt" contains the observed number of sunspots on the Sun for each month since January 1749. The file contains two columns of numbers, the first being the month, t, and the second being the sunspot number, y(t (a Write a program that reads in the data and makes a graph of sunspots as a function of time (b) One way to demonstrate highly fluctuating data is to calculate moving average (or running average) for the data as you taking the average over small range of data rather than entire data. The moving average of the data, defined by yk +m 2r where r represents the range for taking average and the yk are the sunspot numbers Calculate the moving average for r 5, 10 and 100 and plot both the original data and the moving average on the same graph

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!