DSP using MATLAB 示例 Example3.15

上代码:
subplot(1,1,1);
b = 1; a = [1, -0.8];
n = [0:100]; x = cos(0.05*pi*n);
y = filter(b,a,x);
figure('NumberTitle', 'off', 'Name', 'Input and Output sequence');
set(gcf,'Color','white'); 
subplot(2,1,1); stem(n,x); title('Input sequence');  xlabel('n'); ylabel('x(n)'); grid on;
subplot(2,1,2); stem(n,y); title('Output sequence'); xlabel('n'); ylabel('y(n)'); grid on;
结果:
 
  
    牢记:
1、如果你决定做某事,那就动手去做;不要受任何人、任何事的干扰。2、这个世界并不完美,但依然值得我们去为之奋斗。
 
                    
                
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号