You are on page 1of 6

kCGkAM 3

|
rob|em Statement GLNLkA1ICN CI A kAM U DCWN SIGNAL AS SnCWN

So|ut|on
ulvlde Lhe Waveform lnLo 2 halves(4 Lo 0 and 0 Lo 4)
ueflne Lhe LquaLlon for Lhe Llme lnLerval as L+4 and for Lhe second Llme lnLerval as L+4
loL Lhe varlables wlLh respecL Lo Lhelr Llme lnLervals
Label Lhe xaxls and ?axls
Code
program 31
L40 deflne Lhe flrsL Llme lnLerval beLween 4 and 0
rL+4 deflne Lhe varlable r
L104 deflne Lhe second Llme lnLerval beLween 0 and 4
r1L1+4 deflne Lhe varlable r1
ploL(LrL1r1) axls(3 3 0 3) ploL r wlLh respecL Lo L and r1 wlLh respecL Lo L1 and axls
llmlLs are 3 Lo 3 ln xaxls and 0 Lo 3 ln yaxls
xlabel(1lme)ylabel(AmpllLude) Label 1lme for xaxls and AmpllLude for ?axls








I|gure














||
rob|em Statement GLNLkA1ICN CI A SIGNAL us|ng the cond|t|ons g|ven be|ow

x(t)



So|ut|on
ulvlde Lhe Waveform lnLo 3 halves(1 Lo 0 0 Lo 2 and 0 Lo 4)
ueflne Lhe LquaLlon for Lhe Llme lnLerval 1 as L+1 for Lhe second Llme lnLerval as 1
And for Lhe Lhlrd Llme lnLerval as L+3
loL Lhe varlables wlLh respecL Lo Lhelr Llme lnLervals
Label Lhe xaxls and ?axls

Code

L10 deflne Lhe Llme lnLerval beLween 1 and 0


ramL+1 deflne Lhe varlable ram for Lhe glven equaLlon
L102 deflne Lhe Llme lnLerval 2 beLween 0 and 2
ram1L1L1+1 deflne Lhe varlable ram1 for Lhe glven equaLlon
L223 deflne Lhe Llme lnLerval 3 beLween 2 and 3
ram2L2+3 deflne Lhe varlable ram2 for Lhe glven equaLlon
ploL(LramL1ram1L2ram2) axls(2 3 0 4) ploL Lhe varlable ram wlLh respecL Lo Lram1 wlLh
respecL Lo L1 ram2 wlLh respecL Lo L2
xlabel(1lme)ylabel(AmpllLude) label Lhe xaxls and yaxls




t+1 1 t 0
1 0t 2
t+3 2 t 3
0 otherw|se
I|gure












|||
rob|em Statement 1o lmplemenL Scallng operaLlon on problem 3(|) and 3(||)
So|ut|on
lor Lhe problem 3(l) and 3(ll) we apply Llme scallng operaLlons
Whlle ploLLlng Lhe graph we deflne Lhe varlable wlLh respecL Lo Lhelr scaled Llme number
Code
Sca||ng of rogram 31
L40 deflne Lhe Llme lnLerval 1 beLween 4 and 0
rL+4 deflne Lhe varlable r
L104 deflne Lhe Llme lnLerval 2 beLween 0 and 4
r1L1+4 deflne Lhe varlable r1
ploL(L*2rL1*2r1) axls(10 10 0 10) ploL Lhe varlable r wlLh respecL
Lo L*2 and r1 wlLh respecL Lo L2*2

Sca||ng of rogram 32
L10 deflne Lhe Llme lnLerval beLween 1 and 0
rL+1 deflne Lhe varlable r
L102 deflne Lhe Llme lnLerval 1 beLween 0 and 2
r1L1L1+1 deflne Lhe varlable r1
L223 deflne Lhe Llme lnLerval 2 beLween 2 and 3
r2L2+3 deflne Lhe varlable r
ploL(L*2rL1*2r1L2*2r2) axls(3 10 0 3) ploL Lhe varlable r wlLh respecL Lo L*2 and r1 wlLh
respecL Lo L2*2 performlng Lhe scallng operaLlon











I|gure Sca||ng Cperat|on on 31 and 32

You might also like