function [x, n] = impseq(n0, n1, n2) n = n1:n2; x = [n == n0];
function [x, n] = stepseq(n0, n1, n2) n = n1:n2; x = [n >= n0];