view rowVector.m @ 1079:ae4b090b5299

Bugfix missing semi-colon in Laplace1d.
author Martin Almquist <malmquist@stanford.edu>
date Wed, 20 Feb 2019 16:14:15 -0800
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