drsp.m
来自「经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助」· M 代码 · 共 10 行
M
10 行
a=input('Type in the left coefficient vector:');
b=input('Type in the right coefficient vector:');
n=input('Type in the range of index n:');
x=input('Type in the expression of input sequence x[n]:');
y=filter(b,a,x);
subplot(2,1,1)
stem(n,x);title('The input sequence x[n]')
subplot(2,1,2)
stem(n,y);title('The output sequence y[n]')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?