Académique Documents
Professionnel Documents
Culture Documents
W SIGNAL
t0=-4:0.01:-3;
x0=zeros(size(t0));
t1=-3:0.01:-2;
x1=ones(size(t1));
t2=-2:0.01:0;
x2=t2+1
t4=0:0.01:1;
x4=-ones(size(t4));
t5=1:0.01:2;
x5=-t5+2;
t6=2:0.01:4;
x6=zeros(size(t6));
x=[x0 x1 x2 x4 x5 x6];
t=[t0 t1 t2 t4 t5 t6];
subplot(1,2,1)
plot(t,x,'linewidth',2);
% Now transforming the signal;
t7=4-2*t;
subplot(1,2,2);
plot(t7,x,'linewidth',2);
Time transformed signal
1
0.8
0.8
0.6
0.6
0.4
0.4
0.2
0.2
Amplitude
Amplitude
Piecewise Signal
1
0
-0.2
0
-0.2
-0.4
-0.4
-0.6
-0.6
-0.8
-0.8
-1
-4
-2
0
Time
-1
-5
5
Time
10
15