?? program7_1.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 + -