
function y = ui(n)
%UI Unit Impulse
% y = ui(n)
%   n:   time index
%   y:   signal

% ------- ui.m ---------------------------------------------
% Marios Athineos, marios@ee.columbia.edu
% http://www.ee.columbia.edu/~marios/
% Copyright (c) 2003 by Columbia University.
% All rights reserved.
% ----------------------------------------------------------

y = (n == 0);