Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

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

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions