标签: matlab matrix vector
vector= 3 4 8 5 2 1 6 the matrix i want to create is 3 0 0 4 3 0 8 4 3 5 8 4 2 5 8 1 2 5 6 1 2
答案 0 :(得分:2)
one of your previous questions已经涵盖了这一点。虽然您并未尝试在此示例中创建方形矩阵,但您仍然可以使用TOEPLITZ中的Jonas' answer函数:
M = toeplitz(vector,[vector(1) 0 0]);