view rowVector.m @ 607:0546de4b31a2 feature/grids

Make grid.evalOn faster.
author Martin Almquist <malmquist@stanford.edu>
date Sat, 14 Oct 2017 22:28:27 -0700
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