- #1
kevinf
- 90
- 0
Homework Statement
The problem provides a sequence. Let x(n) ={1,-2,4,6,-5,8,10} where x(-4)=1, x(-3)=-2,etc.
Generate x1(n) = 3x(n+2)+x(n+4)-2x(n)
The Attempt at a Solution
PHP:
x = [0, 0, 1, -2, 4, 6, -5, 8, 10, 0, 0, 0, 0];
n = -6:6;
x1 = x * 3;
n1 = n-2;
x2 = x * 2;
n2 = n;
x3 = x;
n3 = n+4;
subplot(4,1,1), stem(n1,x1)
grid on
subplot(4,1,2), stem(n2,x2)
grid on
subplot(4,1,3), stem(n3,x3)
grid on
Last edited: