Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I just need a Discussion solution Experiment No. (5) Generation of Elementary Signals I (Continuous Time Signals) Objective: To write a MATLAB program code to
I just need a Discussion solution
Experiment No. (5) Generation of Elementary Signals I (Continuous Time Signals) Objective: To write a MATLAB program code to generate elementary signals in terms of the continuous time signals like ramp, Sawtooth, Sinusoidal and Co-Sinusoidal, Sinc function, Theory: 1- The Unit Ramp Function: The unit ramp function is the integral of the unit step function. It is called the unit ramp function because for positive t, its slope is one amplitude unit per time. ramp(t) = It, t> 0 0, t') ylabel('') title ('Ramp Function') Ramp Function 10 9 8 7 6 Example 2: MATLAB program code to generate Sawtooth and function. clc clear all close all t=0:0.01:20; x=sawtooth(t); a=0.5; xl=sawtooth(t, a); figure subplot (1,2,1) plot(t, x, 'b', 'linewidth', 2) xlabel('') ylabel ('') title ('Sawtooth Function') subplot (1,2,2) plot(t, x1, 'r', 'linewidth', 2) xlabel('') ylabel('') title ('Sawtooth Function') Sawtooth Function Sawtooth Function 1 1 0.8 0.8 0.6 0.6 0.4 0.4 0.2 0.2 / Amplitude --> 0 -0.2 -0.2 -0.4 -0.4 -0.6 -0.6 -0.8 -0.8 -1 -1 0 20 0 20 5 10 15 5 10 15 Example 3: MATLAB program code togenerate Sinusoidal and Co-Sinusoidal function. clc clear all close all t=0:0.01:20; A=1; f=0.1; x=A*sin (2*pi*f*t); xl=A*COS (2*pi*f*t); figure subplot (1,2,1) plot(t, x, 'b', 'linewidth', 3) xlabel ('') ylabel ('') title ('Sinusoidal Function') subplot (1,2,2) plot(t, x1, 'r', 'linewidth', 3) xlabel('') ylabel('') title('Co-Sinusoidal Function') Sinusoidal Function Co-Sinusoidal Function 0.8 0.8 0.6 0.6 0.41 0.4 / 0.2 0.2 -0.2 -0.2 -0.4 -0.4 -0.6 -0.6 -0.8 -0.8 20 20 5 10 15 5 10 15 Example 4: MATLAB program code to generate Sinc function. Program-1 clc clear all close all t=-10:0.01:10; L=length(t); A=1; x=A* sinc(t); figure subplot (1,2,1) plot(t, x, 'b', 'linewidth', 2) xlabel('') ylabel('') title ('Sinc Function') % Program-2 f=0.5; for i=1:1; if t==1; x1 (i)=1; else x1 (i)=A*sin (2*pi*f*t(i))/(2*pi*f*t (i)); end end subplot (1,2,2) plot(t, x1, 'r', 'linewidth', 2) xlabel ('') ylabel('') title ('Sinc Function') Sinc Function Sinc Function 1 1 0.8 0.8 0.6 0.6 1 / 0.41 0.4 Amplitude 0.2 0.2 0 M -0.2 -0.2 -0.44 -10 10 -0.4 - 10 10 -5 0 5 -5 0 5 Page 36 Discussion: 1- Show that Ramp(e) = ** u(t) dt = t* u(t)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