Question: PLEASE DO ALL IN MATLAB USING LOOPS TO ITERATE AND PLEASE SHOW EVERYTHING Home-My Unimelb St. X -Programming Assignme / D Assignment 4.pdf e

PLEASE DO ALL IN MATLAB USING LOOPS TO ITERATE AND PLEASE SHOW EVERYTHING

PLEASE DO ALL IN MATLAB USING LOOPS TO ITERATE AND PLEASE SHOW

EVERYTHING Home-My Unimelb St. X -Programming Assignme / D Assignment 4.pdf \

Home-My Unimelb St. X -Programming Assignme / D Assignment 4.pdf \ e Chegg Study | Guided S Secure https://app.lms unimelb.edu.au/bbcswebdav/pid-5834078-dt content-rid-242941412/courses/ENGR100032017 SM2/Assignment 4.pdf : Apps G GoogleLogin-The Univers 1 , watch Game of Thro Question 6 (15 Marks] An engineer has recorded a sound signal from a microphone, and sampled it; these values are stored in a vector. The units of each sample is volts. The microphone was not on at all times, and, therefore, some data samples below a certain threshold are considered to not valid data samples; samples greater than or equal to the threshold are valid. The en- gineer would like to know the average voltage of the sound signal, given by, sum of valid samplesumber of valid samples and the fraction of valid data samples, given by, number of valid samples/total number of samples. If the number of valid samples is 0, then the function must return 0 for both the average voltage and the fraction of valid data points. Write a function, computeAverageVoltage with the following signature. function [average-voltage, frac-valid] = computeAverageVoltage(v, voltage_threshold) Inputs: v - a vector that contains the values of all the voltage samples (in volts) voltage_threshold - threshold voltage (in volts) Output: average_voltage -average voltage computed over valid samples frac_valid - fraction of valid samples 6 10:50 PM Type here to search 7/09/2017 e21

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!