view rowVector.m @ 1216:2a3bd78edb0e

Merged in feature/joingrids (pull request #16) joinGrids Approved-by: Vidar Stiernström <vidar.stiernstrom@it.uu.se>
author Martin Almquist <malmquist@stanford.edu>
date Wed, 13 Nov 2019 22:13:20 +0000
parents 48b6fb693025
children
line wrap: on
line source

function r = rowVector(v)
    if  size(v,1) == 1
        r = v
    elseif size(v,2) == 1
        r = v';
    else
        error('v is not a matrix');
    end
end