Professional Documents
Culture Documents
X = power(t,2) +
power(t,3);
x = fliplr(X);
x_even = 0.5*(x+X);
x_odd = 0.5*(X-x);
subplot(3, 1,1);
plot(t, X);
subplot(3, 1,2);
plot(t, x_even);
subplot(3, 1,3);
plot(t, x_odd);
2. Positive and Negative number
%Folding
subplot(3,3,4);
stem(-t,x);
xlabel("time");
ylabel("amplitude");
title("Folded Signal");
%Time Scaling
s=2;
subplot(3,3,5);
stem(s.*t,x);
xlabel("time");
ylabel("amplitude");
title("Time Scaled Signal");