I certify that this project is my own work and is not the work of others. I agree not to share my solution with others.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

I certify that this project is my own work and is not the work of others. I agree not to share my solution with others.

Post by answerhappygod »

I Certify That This Project Is My Own Work And Is Not The Work Of Others I Agree Not To Share My Solution With Others 1
I Certify That This Project Is My Own Work And Is Not The Work Of Others I Agree Not To Share My Solution With Others 1 (134.5 KiB) Viewed 31 times
I certify that this project is my own work and is not the work of others. I agree not to share my solution with others. - Print your name here. Add the following code to your notebook. freq =500 #cycles per second (Hz) period =1/ freq #seconds per sample #Create 4 samples for each cycle of the sinusoidal pulse time_step = period/4 #sampling interval #Create a time base sufficient to describe 20 cycles of the # sinusoid with an interval of time_step. time_vec = np.arange( 0,20∗ period,time_step) #Create the sinusoid sigA = (np.sin( 2∗ np.pi ∗ time_vec / period)) #Force the first 50% of the sinusoid to have a value of zero leaving #approximately 9.5 cycles of the sinusoid intact. for i in range(int( 0.50∗ sigA.size)): sigA =0 This code will create a sinusoidal pulse 10 cycles in length embedded in a time series twice that long as shown in the following image. Display the image in your notebool
Compute and plot the amplitude spectrum of sigA producing the following image in your notebook. Write code similar to that shown above to create a new signal referred to by a variable named sigB. Plot that signal in your notebook. Compute and plot the amplitude spectrum of sigB producing the following image in your notebook.
Also cause your code to write each of the four images into output files named: - Proj08YourNameA.jpg - Proj08YourNameB.jpg - Proj08YourNameC.jpg - Proj08YourNameD.jpg Variations among different versions of Jupyter Notebook may result in cosmetic formatting differences in the plots as compared to those shown above as the curves are correct.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply