1. 单位样本序列
function [x, n] = impseq(n0, n1, n2)
n = n1:n2;
x = [n == n0];
2. 单位阶跃信号
function [x, n] = stepseq(n0, n1, n2)
n = n1:n2;
x = [n >= n0];
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];