matlab中提示The length of X must match the number of rows of Yclear all;close all;clc;k=0:6;a=[1 3 2];b=[1];h=impz(b,a,k);g=stepz(b,a,k);subplot(2,1,1);stem(k,h);grid on;title('h[k]');xlabel('k');ylabel('h');subplot(2,1,2);stem(k,g);grid on;title(
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/23 14:45:13
![matlab中提示The length of X must match the number of rows of Yclear all;close all;clc;k=0:6;a=[1 3 2];b=[1];h=impz(b,a,k);g=stepz(b,a,k);subplot(2,1,1);stem(k,h);grid on;title('h[k]');xlabel('k');ylabel('h');subplot(2,1,2);stem(k,g);grid on;title(](/uploads/image/z/13321980-36-0.jpg?t=matlab%E4%B8%AD%E6%8F%90%E7%A4%BAThe+length+of+X+must+match+the+number+of+rows+of+Yclear+all%3Bclose+all%3Bclc%3Bk%3D0%3A6%3Ba%3D%5B1+3+2%5D%3Bb%3D%5B1%5D%3Bh%3Dimpz%28b%2Ca%2Ck%29%3Bg%3Dstepz%28b%2Ca%2Ck%29%3Bsubplot%282%2C1%2C1%29%3Bstem%28k%2Ch%29%3Bgrid+on%3Btitle%28%27h%5Bk%5D%27%29%3Bxlabel%28%27k%27%29%3Bylabel%28%27h%27%29%3Bsubplot%282%2C1%2C2%29%3Bstem%28k%2Cg%29%3Bgrid+on%3Btitle%28)
matlab中提示The length of X must match the number of rows of Yclear all;close all;clc;k=0:6;a=[1 3 2];b=[1];h=impz(b,a,k);g=stepz(b,a,k);subplot(2,1,1);stem(k,h);grid on;title('h[k]');xlabel('k');ylabel('h');subplot(2,1,2);stem(k,g);grid on;title(
matlab中提示The length of X must match the number of rows of Y
clear all;close all;clc;
k=0:6;
a=[1 3 2];
b=[1];
h=impz(b,a,k);
g=stepz(b,a,k);
subplot(2,1,1);stem(k,h);grid on;title('h[k]');xlabel('k');ylabel('h');
subplot(2,1,2);stem(k,g);grid on;title('g[k]');xlabel('k');ylabel('g');
最后一个图没图像···怎么改··
matlab中提示The length of X must match the number of rows of Yclear all;close all;clc;k=0:6;a=[1 3 2];b=[1];h=impz(b,a,k);g=stepz(b,a,k);subplot(2,1,1);stem(k,h);grid on;title('h[k]');xlabel('k');ylabel('h');subplot(2,1,2);stem(k,g);grid on;title(
clear all;
close all;
clc;
k=6;
a=[1 3 2];
b=[1];
[h t]=impz(b,a,k);
[g t]=stepz(b,a,k);
subplot(2,1,1);stem(t,h);grid on;title('h[t]');xlabel('t');ylabel('h');
subplot(2,1,2);stem(t,g);grid on;title('g[t]');xlabel('t');ylabel('g');
按上面语句试试