Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE DO NOT COPY AND PASTE FROM CHEGG; IF YOU DO, I WILL REPORT YOU. 1. Create a MATLAB program that plots the Continuos-time and

PLEASE DO NOT COPY AND PASTE FROM CHEGG; IF YOU DO, I WILL REPORT YOU.

image text in transcribed

1. Create a MATLAB program that plots the Continuos-time and sampled sinusoids 2000 Hz a) Consider X, (t) = A, cos wt (f = 2000 Hz) = 10 cos a lift a 1 b) b Make sure to give the time increments Small enough to approximate a Continuous time signal for Take a sampling rate, 200 microseconds and create 20 samples Xa(t) = 10 cos af nT (sin wont) and prot the sampled sinusoid Make to sure to use supplot b) is discrete and b) c) Consider part as, this time with a phase shift of 30 roo-sample of amplitude ao and frequency 50 H2 sampled at 400 Hz f = 50 and a H = 20 hz 0:199 set sample spacing at 2.5ms=400Hz T = 0.0025 X3 (F 1 = 20 cos (anfnt) plot (n&T, X21 For the phase shift 14 X3 (4) = 20 Cos ( 20 fa 101/6) phi t To T thpt #. 0.250) shift the X3 (4) by ) 300 Phi C or T16 add this command to shift the wave byl TVG) 3 Plotting the square wave Foarier Series for squam w are T Ci oct LT/2 0 12 Lt LT I 22n + t n=o Y CH) = { Take the final Fourier Coefficient as anfo )t YCH = {+ a 3 cos (21fo (an ei) { of Calculate the 1st four terms of the above equation zake for 100 Hz Evaluate Y HI at an increment of 0.01 ms over the interval of oto 30ms & T = 10ms Start withi t = 0: 0.01:30) to=100 T = 1000/10 pi s terms=(2/(p :) * ces (2 x prxty) terma= (2/(pix31) & us (ax prxtx3 /7) s term3 (21(pi*5))*-* z Q >> terma ) Y= ( ) + termittermaat Plot(t, y) {

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

Question

Explain the nature of human resource management.

Answered: 1 week ago