《DSP using MATLAB》Problem 9.5
和P9.4思路一样,只是D=5,这里只放第1小题。 代码: %% ------------------------------------------------------------------------ %% Output Info about this m-file fprintf('\n***********************************************************\n'); fprintf(' <DSP using MATLAB> Problem 9.5.1 \n\n'); banner(); %% ------------------------------------------------------------------------ % ------------------------------------------------------------ % PART 1 % ------------------------------------------------------------ % Discrete time signal n1_start = 0; n1_end = 100; n1 = [n1_start:1:n1_end]; xn1 = cos(0.15*pi*n1); % digital