Matlab中,运行程序出现The length of X must match the number of rows of Y是怎么回事?b=[0 0 2];a=[1 -1.5 1];k1=0;k2=15;k=k1:k2;N=length(k);f=ones(1,N);zi=filtic(b,a,[1 2]);y=filter(b,a,f,zi);figure(1);stem(k,y),xlabel('k'),title('全响应')

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/14 14:07:23
Matlab中,运行程序出现The length of X must match the number of rows of Y是怎么回事?b=[0 0 2];a=[1 -1.5 1];k1=0;k2=15;k=k1:k2;N=length(k);f=ones(1,N);zi=filtic(b,a,[1 2]);y=filter(b,a,f,zi);figure(1);stem(k,y),xlabel('k'),title('全响应')

Matlab中,运行程序出现The length of X must match the number of rows of Y是怎么回事?b=[0 0 2];a=[1 -1.5 1];k1=0;k2=15;k=k1:k2;N=length(k);f=ones(1,N);zi=filtic(b,a,[1 2]);y=filter(b,a,f,zi);figure(1);stem(k,y),xlabel('k'),title('全响应')
Matlab中,运行程序出现The length of X must match the number of rows of Y是怎么回事?
b=[0 0 2];
a=[1 -1.5 1];
k1=0;k2=15;k=k1:k2;
N=length(k);
f=ones(1,N);
zi=filtic(b,a,[1 2]);
y=filter(b,a,f,zi);
figure(1);
stem(k,y),xlabel('k'),title('全响应')
figure(2);
m=filter(b,a,0,zi);
stem(k,m),xlabel('k'),title('零输入')

Matlab中,运行程序出现The length of X must match the number of rows of Y是怎么回事?b=[0 0 2];a=[1 -1.5 1];k1=0;k2=15;k=k1:k2;N=length(k);f=ones(1,N);zi=filtic(b,a,[1 2]);y=filter(b,a,f,zi);figure(1);stem(k,y),xlabel('k'),title('全响应')
clear;
clc;
b=[0 0 2];
a=[1 -1.5 1];
k1=0;k2=15;k=k1:k2;
N=length(k);
f=ones(1,N);
zi=filtic(b,a,[1 2]);
y=filter(b,a,f,zi);
figure(1);
stem(k,y),xlabel('k'),title('全响应')
figure(2);
m=filter(b,a,zeros(1,N),zi);
stem(k,m),xlabel('k'),title('零输入')