《DSP using MATLAB》示例Example5.14

代码:

x1 = [1,2,2]; x2 = [1,2,3,4]; y = circonvt(x1,x2,4)

n1 = 0:1:length(x1)-1;
n2 = 0:1:length(x2)-1;

ny = 0:1:length(y)-1;

%% -----------------------------------------------------------------
%%                  START   a
%% -----------------------------------------------------------------
figure('NumberTitle', 'off', 'Name', 'Exameple5.14 ')
set(gcf,'Color','white'); 
subplot(3,1,1); stem(n1,x1); title('sequence x1(n)'); axis([0,5,0,5]);
xlabel('n'); ylabel('x1(n)'); grid on;
subplot(3,1,2); stem(n2,x2); title('sequence x2(n)'); axis([0,5,0,5]);
xlabel('n'); ylabel('x2(n)'); grid on;
subplot(3,1,3); stem(ny,y); title('Circularly convolution sequence y(n)'); axis([0,5,0,20]);
xlabel('n'); ylabel('y(n)'); grid on;


%% -----------------------------------------------------------------
%%                  END   a
%% -----------------------------------------------------------------

  运行结果:

《DSP using MATLAB》示例Example5.14

《DSP using MATLAB》示例Example5.14

 

相关文章:

  • 2021-07-31
  • 2021-08-19
  • 2021-10-26
  • 2021-12-24
  • 2022-01-07
  • 2022-12-23
  • 2021-05-23
  • 2021-12-02
猜你喜欢
  • 2022-01-15
  • 2021-04-04
  • 2021-08-27
  • 2021-12-11
  • 2021-12-02
  • 2021-08-05
  • 2021-11-02
相关资源
相似解决方案