program2_6.m

来自「This file contain the programs of cap 2 」· M 代码 · 共 10 行

M
10
字号
%Program 2_6
%Illustration of Impulse Response Computation
%
N=input('Number of input samples: ');% a fun玢o input aceita qualquer valor na entrada, seja ele de qualquer tipo.
p=input('Type in the vector p=');% a fun玢o input aceita qualquer valor na entrada, seja ele de qualquer tipo.
d=input('Type in the vector d=');% a fun玢o input aceita qualquer valor na entrada, seja ele de qualquer tipo.
f=input ('Type the response: 0- impulse response, 1-step response: ');
while f~=0 & f~=1 f=input ('Type the response: 0- impulse response, 1-step response: ')
end;
if f==0 x=[ 1 zeros(1,N-1)]; %este comando cria uma matriz de zeros de 1 at

⌨️ 快捷键说明

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