Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help to do this assignment using matlab. I need to code for those. please show the screenshots for the code . ENGR 3331 Signals

image text in transcribed

please help to do this assignment using matlab. I need to code for those. please show the screenshots for the code .

ENGR 3331 Signals and Systems Lab 2020 ASSIGNMENT EXERCISES Write a function "Avg Var" using M-File to compute the average r and the variance of an array x. The function should take an array and return the average and the variance. The variance ois defined to be: OP- 1 (x - x)? >> Avg. Var = Avg Var(x) % x is the input vector. Ayg and Var are the average and variance of the elements in x Write a function using M File that implements the following hard-limiting function: _ 0.5 f(x) = } 1-0.5 f(x) > 0 f(x) > SigHD = Hard Limiting(Sig) % Sig is the input vector, SigHD is the signal after applying hard limiting. a) Test your function by passing the sinusoidal function you created in the MATLAB Sound section. If you function is working probably it should return a square function. Plot the output of your function to verify that that the output is a square function of amplitude 0.5. Play the square function. Does it sound different than the sinusoidal function? b) Download the wave file "BigDog.wav" from the course website and save it in the same folder you saved the hard-limiting function. Test your hard-limiting function by passing the vector of the BigDog and play the returned array of the hard- limiting function. Plot the original signal and hard limited signal. Do you still understand the speech signal? By the hard limiting function you only kept the zero-crossing information of the speech signal. Zero-crossing represent the stationary position of the eardrum. Positive values of the speech signal push the eardrum inward toward the cochlea and negative values pull the eardrum outward

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 do you mean by exception propagation?

Answered: 1 week ago