Question
Write matlab code for Following. Dataset (audio1.wav) is an audio signal sampled at 44.1 kHz. i. Estimate the mean using the entire data. Plot this
Write matlab code for Following.
Dataset (audio1.wav) is an audio signal sampled at 44.1 kHz.
i. Estimate the mean using the entire data. Plot this as a horizontal dashed line on a new figure.
ii. Estimate the mean from the first N points of the data, letting N vary from 1 to the maximum number of samples in the dataset. Overlay a plot of the computed means vs. the number of points N on the plot from step i). Comment on what you observe.
iii. Estimate the mean using a moving window approach1 . Consider the following lengths of the window: 30 data points (i.e. 30 day moving average) for the stock data and 441 samples (i.e., average over 10 ms of data) for the audio file. Superimpose the computed means on the plot from step i). Comment on what you observe. iv. Repeat step iii) with the following values for window lengths: 90 data points (i.e. 3-month moving average) for stock data and 882 samples (i.e. average over 20 ms of data) for the audio file.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started