Page 1 of 1

Generating Waves (Signals) 1.5 UNITMPULSE 0.5 -8 -6 -4 -2 0 2 4 6 There are two ways to generate functions (signals), ma

Posted: Sat Nov 27, 2021 2:23 pm
by answerhappygod
Generating Waves Signals 1 5 Unitmpulse 0 5 8 6 4 2 0 2 4 6 There Are Two Ways To Generate Functions Signals Ma 1
Generating Waves Signals 1 5 Unitmpulse 0 5 8 6 4 2 0 2 4 6 There Are Two Ways To Generate Functions Signals Ma 1 (111.59 KiB) Viewed 52 times
Generating Waves (Signals) 1.5 UNITMPULSE 0.5 -8 -6 -4 -2 0 2 4 6 There are two ways to generate functions (signals), matrix method and function method. 1) Unit Impulse Signal: clc clear all tl=1:10; t=[O t1]; u=[1 zeros(1,10)); stem(t,u); axis([-10 10 -0.5 1.5]) grid on zoom on xlabel('t(time)') ylabel('UNIT_IMPULSE') -0.50 t(time) 2) Unit Step Signal: To plot unit step function, write the following MATLAB code: clc close all tl=-10:0; t2=0:10; t=[t1 t2]; u=[zeros(1,11) ones(1,11)]; plot(t,u); axis([-11 11-0.5 1.5]) grid on zoom on xlabel('t(time)') ylabel('UNIT_STEP') 8 1.5 UNITSTEP -0.5 -10 -8 -6 4 -2 2 4 6 8 10 0 t(time) We can generate the step signal in function method using a function called hardlim function. a 1+1 0 a = hardlimin) Hard-Limit Transfer Function 1