Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use techniques and methods used in Chapters 1-6 in MATLAB Programming for Engineers 5th edition by Chapman. Thank you!! Problem 3. (25 points) Running

Please use techniques and methods used in Chapters 1-6 in MATLAB Programming for Engineers 5th edition by Chapman. Thank you!!

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

OUTCOME 6 Explain and give examples of diversity management.

Answered: 1 week ago

Question

Project management skills and/or experience desirable

Answered: 1 week ago