n=[-10:9];x4=[1,0,1,2,3];xtilde=x4'*ones(1,4);xtilde=(xtilde(:))';subplot(2,2,4);stem(n,xtilde);xlabel('n');ylabel('x4(n)');axis([-10,9,-1,4])请问,xtilde=x4'*ones(1,4);xtilde=(xtilde(:))';怎么理解呢
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 14:24:00
n=[-10:9];x4=[1,0,1,2,3];xtilde=x4'*ones(1,4);xtilde=(xtilde(:))';subplot(2,2,4);stem(n,xtilde);xlabel('n');ylabel('x4(n)');axis([-10,9,-1,4])请问,xtilde=x4'*ones(1,4);xtilde=(xtilde(:))';怎么理解呢
n=[-10:9];x4=[1,0,1,2,3];xtilde=x4'*ones(1,4);xtilde=(xtilde(:))';
subplot(2,2,4);stem(n,xtilde);xlabel('n');
ylabel('x4(n)');axis([-10,9,-1,4])
请问,xtilde=x4'*ones(1,4);xtilde=(xtilde(:))';怎么理解呢
n=[-10:9];x4=[1,0,1,2,3];xtilde=x4'*ones(1,4);xtilde=(xtilde(:))';subplot(2,2,4);stem(n,xtilde);xlabel('n');ylabel('x4(n)');axis([-10,9,-1,4])请问,xtilde=x4'*ones(1,4);xtilde=(xtilde(:))';怎么理解呢
xtilde=x4'*ones(1,4),是将x4转置变为一个列向量,再乘以一个一行4列的全1矩阵,这样会得到一个5行4列的矩阵
xtilde =
1 1 1 1
0 0 0 0
1 1 1 1
2 2 2 2
3 3 3 3
xtilde=(xtilde(:))'是将xtilde中的所有元素拉伸成一列,再转置为一行.
xtilde =
1 0 1 2 3 1 0 1 2 3 1 0 1 2 3 1 0 1 2 3