Question: Step 1: Write a MATLAB program to create rectangular pulse for three different pulse widths as below. Generate three rectangular pulses (say x1, x2, x3)

 Step 1: Write a MATLAB program to create rectangular pulse for

Step 1: Write a MATLAB program to create rectangular pulse for three different pulse widths as below. Generate three rectangular pulses (say x1, x2, x3) of various widths. NOTE: Use u.m program. (See your class notes) Pulse x = u(t-a)-u(t-b) Pulse width will be 0.01, 0.05, 0.10 with proper choice of a and b values. Step 2 : Now use FFT for each signal x(t), to transform each pulse to a frequency domain X (f). Apply the Inverse FFT of X(f) created in the step above, to recreate the time-domain pulse (say y1,y2,y3). Step 3: Find the Magnitude of each of the two transformed signals ( Say X1m and ylm) created in step 2 using the absolute value function. Step 4 : Use subplot, axis, xlabel, ylabel commands to plot all nine plots in 3 by 1 format in a single page for each rectangular pulses. Show that x(t) and y(t) plots are same in each case. Note: xlabel will be t, f, and t respectively. ylabel will be x(t), X(f) and y(t) respectively. Plots are a) Original rectangular pulse (time vs. amplitude) b) Magnitude spectrum plot (frequency vs. magnitude) c) Original signal after taking Inverse FFT (time vs. amplitude)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!