tags:

views:

71

answers:

1
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
+2  A: 

This was already covered in one of your previous questions. Although you aren't trying to create a square matrix in this example, you can still use the TOEPLITZ function like in Jonas' answer:

M = toeplitz(vector,[vector(1) 0 0]);
gnovice

related questions