⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 program7_1.m

📁 经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助
💻 M
字号:
%===================================================
% program 7_1
% Solving a constant coefficient difference equation
% The input sequence must be a closed representation
%===================================================
N=input('Desired impulse response length = ');
n=0:N;
p=input('Type in the vector p = ');
d=input('Type in the vector d = ');
x=input('Type in the input sequence x(n) = ');%[1 zeros(1,N-1)];
y=filter(p,d,x);
stem(n,y)
title('The output sequence y(n)')
xlabel('Time index n');ylabel('Amplitude')

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -