Exp 3
Exp 3
Exp 3
grid on;
x2 = exp(t);
plot(t, x2);
ylabel('Amplitude (volt)');
subplot(2,1,2); x1 = cos(2*t);
plot(t, x2);
ylabel('Amplitude (volt)');
t = -1:0.01:1; grid on;
x1 = sin(t); subplot(2,1,2);
plot(t, x2);
x2 = -sin(t); title('Time Reversed Signal: x(-t) = cos(2t)');
xlabel('Time (sec)');
figure; ylabel('Amplitude (volt)');
subplot(2,1,1); grid on;
1: x(t)=t2 and x(t−2)=(t−2)2 xlabel('Time (sec)');
x2 = (t-2).^2; subplot(2,1,2);
plot(t, x2);
xlabel('Time (sec)');
x1 = exp(t);
subplot(2,1,2);
plot(t, x2);
x1 = t; grid on;
x2 = 2*t; subplot(2,1,2);
plot(t, x2);
ylabel('Amplitude (volt)');
3: x(t)=e−t and x(3t)=e−3t
grid on;
t = -1:0.01:1;
x1 = exp(-t);
subplot(2,1,2);
plot(t, x2);
x2 = exp(-3*t);
title('Scaled Signal (compressed): x(2t) = 2t');
figure;
xlabel('Time (sec)');
subplot(2,1,1);
ylabel('Amplitude (volt)');
plot(t, x1);
grid on;
title('Original Signal: x(t) = e^{-t}');
ylabel('Amplitude (volt)');
t = -1:0.01:1;
grid on;
x1 = sin(t);
subplot(2,1,2);
x2 = sin(0.5*t);
plot(t, x2);
x1 = 2.^n;
subplot(2,1,2);
figure; xlabel('n');
subplot(2,1,2); x2 = -sin(2*pi*n);
ylabel('Amplitude (volt)');
n = -10:10;
x1 = (n == 0); subplot(2,1,2);
stem(n, x2);
x1 = n; grid on;
x2 = n - 2; subplot(2,1,2);
stem(n, x2);
subplot(2,1,1); xlabel('n');
xlabel('n');
x1 = 3.^n;
subplot(2,1,2);
xlabel('n'); figure;
ylabel('Amplitude (volt)'); subplot(2,1,1);
grid on; stem(n, x1);
stem(n, x2);
subplot(2,1,1); xlabel('n');
x1 = n;
subplot(2,1,2);
xlabel('n');
ylabel('Amplitude (volt)');
3: x[n]=n2 and x[3n]=(3n)2
x1 = n.^2;
subplot(2,1,2);
xlabel('n'); subplot(2,1,1);
xlabel('n');
grid on;
n = 0:49;
x1 = sin(4*pi*n);
subplot(2,1,2);
stem(n, x2);
x2 = sin(8*pi*n);
title('Scaled Signal (compressed): x[3n] =
figure;
(3n)^2');
subplot(2,1,1);
xlabel('n');
stem(n, x1);
ylabel('Amplitude (volt)');
title('Original Signal: x[n] = sin(4\pi n)');
grid on;
xlabel('n');
ylabel('Amplitude (volt)');