EE342.01: MATLAB M-FILE FOR PLOTTING IDTFT x[n]

MATLAB M-File example12.m:
%
% Filename: example12.m
%
% Description: M-file for plotting x[n]=0.25sinc((n-1)/4) the
%              IDTFT of periodic p_(pi/2)e^(-j*W).
%

clear; clf;                     % clear memory and figure

n = -10:10;                       % DT values

x = sinc((n-1)/4)/4;            % DT signal
stem(n,x,'filled');
xlabel('n'); ylabel('x[n]');
title('IDTFT of periodic p_{\pi/2}e^{-j\Omega}')
grid;
MATLAB Plot Generated: