view rowVector.m @ 922:1d91c2a8aada feature/utux2D

Refactor LaplCurv.interfaceNonConf. Add method for interpolation operator generation in LaplCurv
author Martin Almquist <malmquist@stanford.edu>
date Sun, 02 Dec 2018 17:10:07 -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