Continuous Time Signal Experiment

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Name: Muhammad Faizeen bin Ab Razak

Matrix no: 20174


Total Mark :

/20
LABORATORY EXERCISE 1

CONTINUOUS TIME SIGNALS: TIME TRANSFORMATION

Call the function ps1.m and plot y(t)

< Insert program code here. Copy from m-file(s) and paste. >
>>
>>
>>
>>

t=linspace(-4,0);
y=ps1(t);
plot(t,y)
axis([-2,0,-4,0]);

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

Obtain the transformed functions of y(t):


y(-t)
What is your expected output?

The graph will be the mirror image of y(t) as a result of amplitude scaling.
< Insert program code here. Copy from m-file(s) and paste. >
>> t=linspace(0,4);
>> y=ps1(-t);
>> plot(t,y)
>> axis([0,2,-4,0]);

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

y(3t)

What is your expected output?


By time scaling, t is compressed to one-third of 2.
< Insert program code here. Copy from m-file(s) and paste. >
>>
>>
>>
>>

t=linspace(-1,0);
y=ps1(3*t);
plot(t,y)
axis([-0.7,0,-4,0]);

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

[4 marks]

y(t/2)

What is your expected output?


By time scaling, t is expanded by two times.
< Insert program code here. Copy from m-file(s) and paste. >
>>
>>
>>
>>

t=linspace(-4,0);
y=ps1(t/2);
plot(t,y)
axis([-4,0,-4,0]);

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

-2y((t-1)/2)

< Insert program code here. Copy from m-file(s) and paste. >
>>
>>
>>
>>

t=linspace(-4,1);
y=2*ps1((t-1)/2);
plot(t,y)
axis([-4,1,-8,0]);

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

Date: 8th/June/2015

Signature:

*hint : To obtain full mark, answer all questions and make sure that your
figure clearly shows the graph. Use syntax axis([xmin xmax ymin ymax])

after calling the plot function.

You might also like