Professional Documents
Culture Documents
Continuous Time Signal Experiment
Continuous Time Signal Experiment
Continuous Time Signal Experiment
/20
LABORATORY EXERCISE 1
< 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. >
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)
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)
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])