Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3. (25 points) Running average filter is a way for smoothing noisy data set. For each data sample in a running average filter, the

image text in transcribed

Problem 3. (25 points) 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

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions