view rowVector.m @ 553:63d5c07943dd feature/grids/laplace_refactor

Reorder and restructure constructor
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 29 Aug 2017 11:04:15 +0200
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