Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help would be mich appreciated thank you!! Running average filter is a way for smoothing noisy data set. For each data sample in a running

Help would be mich appreciated thank you!!

Running average filter is a way for smoothing noisy data set. For each data sample in a running average filter, the program examines a subset of n samples centered on the sample under test, and it replaces that sample with the average value from the n samples. (Note 1: For points near the beginning and the end of the data set, use a small number of samples is the running average, but be sure to keep equal number of samples on either side of the sample under test; Note 2: Be sure to create another variable to hold the smoothed data to avoid changing the original data during the smoothing process.) Write a MATLAB function to perform a running average filter on a data set. Write a program that allows the user to specify the name of an input dataset and the number of samples n to average in the filter and then call the MATLAB function to perform the running average filter on the data. Use the load function to load the data. Use the input function with s option to get the file name and n from the user. Use the data in the input.txt file for testing your program. The program should plot both the original data the smoothed curve after the running average filter.

image text in transcribed

8.57 8.86 9.01 8.83 9.09 9.03 9.23 9.34 9.7 9.54 9.49 9.42 9.49 9.61 9.52 9.33 9.78 10.27 10.16 10.09 9.71 11.14 11.07 11.15 10.68 10.98 11.11 11.17 11.06 1.96 11.04 10.96 10.95 10.9 11.04 11. 10.63 11.04 10.85 18.88 10.89 11.65 11.33 11.44 11.5 11.26 11.35 11.52 11.35 11.23 11.1 10.86 11.01 10.88 11.03 10.92 11.03 11.85 11.65 10.83 11.44 11.48 9.98 9.529.63 9.8910.08 9.74 9.47 9.69 9.84 9.73 9.7910.06 10.45 10.25 10.3 9.45 9.33 9.88 9.84 9.42 9.33 9.85 9.44 9.41 9.63 9.42 9.53 9.61 9.38 9.3 9.31 9.37 9.34 9.36 9.45 9.63 9.33 9.42 9.44 9.42 9.59 9.14 9.99 10.43 10.38 10.34 10.88 10.77 10.71 19.26 10.34 9.84 9.76 9.77 9.799.49 9.7 9.63 9.52 9.45 9.65 9.19 9.35 9.48 9.71 9.579. 9.04 9. 9.59 9.86 8.87 9.36 9.72 9.79 9.8 9.79 9.89 9.39 9.46 61 9.41 9.34 9.25 9.29 9.49 9.82 9.59 82 9.84 8.93 9.88 9.19 9.27 9.2 9.35 9.58 9.14 10.09 0.09 9.64 9.34 9.25

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

3. Revise and narrow your topic.

Answered: 1 week ago

Question

How we can improve our listening skills?

Answered: 1 week ago

Question

How do artifacts affect interaction between members of the team?

Answered: 1 week ago