for i=1:3
a=1:i
k=length(a) %a的长度
b(i,1:k)=a %输入信号向量大小不一时!
end
a =1
b =
1
a =1 2
b =
1 0
1 2
a =1 2 3
b =
1 0 0
1 2 0
1 2 3
for i=1:3
a=1:i
k=length(a) %a的长度
b(i,1:k)=a %输入信号向量大小不一时!
end
a =1
b =
1
a =1 2
b =
1 0
1 2
a =1 2 3
b =
1 0 0
1 2 0
1 2 3