I believe you intended semicolons (;) instead of colons (:) in your matrix definition.
To convert it to a vector, use the reshape function:
Matrix = [1,1,1,1; -1,-1,-1,-1; 1,1,1,1];
Vector = reshape(Matrix', 1, [])
Vector =
1 1 1 1 -1 -1 -1 -1 1 1 1 1
EDIT — Added output of ‘Vector’.
Best Answer