Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE MATLAB FOR ALL QUESTIONS Problem 3: You are to help analyze the output voltage of a microphone. Assume that the voltages were recorded at

USE MATLAB FOR ALL QUESTIONS

Problem 3: You are to help analyze the output voltage of a microphone. Assume that the voltages were recorded at discreet time intervals. However because the microphone was not always turned on, voltages corresponding to noise generated from the measuring equipment will be recorded during the intervals the microphone was turned off. Prompt the user to enter the voltages recorded in an array. Prompt the user to enter the threshold voltage below which the voltage is considered noise. Create a loop to count the number of valid voltage measurements (those above the threshold) and determine the average of the valid voltage measurements. After the loop is completed, output the number of valid measurements and the average of the valid measurements in one statement. In another statement, output the total number of measurements recorded and the percentage of invalid measurements due to noise.

Problem 4: The data file from Project 4 has been saved as a new MATLAB data file named LinearData.mat. Import this file using the command from Chapter 2 of your textbook,. Your workspace window should show 2 variables: one named x and one named y. Using the equations from Project 4 and built-in MATLAB function, calculate the slope and y-intercept (do not use loops). Create a ycalculated array using the original x values and the slope and y-intercept. Calculate the Goodness of Fit using equation from Project 4 (do not use loops). Plot x vs y and x vs ycalculated in the same figure. Use different line types, marks and colors for each plot (refer to Table 4.2)

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago