% VEC2ROW Ensures that a variable not has less columns than rows. % % The most common application of this function is to ensure that a % vector is a row vector. % % FORMAT v = vec2row(v) % % OUT v A variable of any type. % IN v The variable possible transposed. % 1993 Created by Patrick Eriksson. % 2002-12-10 Adapted to Atmlab from arts/ami. function v = vec2row(v) [rows,cols] = size(v); if (rows > cols) v = v'; end