Question
Python 3! Thank you Question 7: Generate an array of the same length as the 1D signal, whose elements are drawn from a random Gaussian
Python 3!
Thank you
Question 7: Generate an array of the same length as the 1D signal, whose elements are drawn from a random Gaussian distribution with mean zero and standard deviation =3 . Look up the normal() submodule under numpy.random. Example syntax is mu = 0 # mean sigma = 3 # standard deviation noise = np.random.normal(mu, sigma, n) Generate a new signal by adding the piece-wise constant signal from above and your new random Gaussian array (noise). Plot this new signal both as a line and stem plot (use subplot() again) over the sampled points. Label all axes and give the plots titles. What do you observe has happened to the signal?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started