view rowVector.m @ 752:0be9b4d6737b feature/utux2D

Merge with feature/interpolation to get new interpolation operators.
author Martin Almquist <malmquist@stanford.edu>
date Tue, 22 May 2018 13:31:09 -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