vector = orientVector(vector, orient)
ORIENTVECTOR handles an annoying matlab issue: ensuring your vectors are oriented in the expected way (i.e, column-wise vs. row-wise). It also performs a simple check that the vector is actually a vector.
out = orientVector(vector, orient) returns the input vector with values running along the direction indicated by "orient". When orient is set to the string 'tall' or the scalar 1, then the vector returned will have values appearing in rows. When it is set to the string 'wide' or the scalar 2, values will appear in columns.