Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use MATLAB coding to solve all parts of the question and please explain each code. 2. (50 points) I. Write a script in which

image text in transcribed

please use MATLAB coding to solve all parts of the question and please explain each code.

2. (50 points) I. Write a script in which you create a vector (x) that contains 20 linearly spaced elements, with values ranging from 1 to 20. Then, create another vector (y) that has the same length as x, and its values are equal to Create a new vector. This vector should contain the original vector y summed -0.05cnolses0.05). Use two different approaches to create the nolsy vector: A. Using a for-loop, where the random value generator gets called for II. with random noise of amplitude between -0.05 and 0.05 (L.e each iteration of the loop. Call the resulting vector yNolsyA B. Using vectorization, where you create a vector of random variables and sum it with the noise-less vector. Call the resulting vector yNolsy III. Create a figure with two plots: A. Plot the vector x vs the original (nolse-less) signal y. B. Plot the vector x vs the nolsy signal yNoisy. (You can use either yNoisyA or yNoisyB from part IL.) x vs y and x vs y + noise 4.5 Y origin 3.5 25 1:5 480 10124018 20 Sample plot for part

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

More Books

Students also viewed these Databases questions