comparison rowVector.m @ 0:48b6fb693025

Initial commit.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 17 Sep 2015 10:12:50 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:48b6fb693025
1 function r = rowVector(v)
2 if size(v,1) == 1
3 r = v
4 elseif size(v,2) == 1
5 r = v';
6 else
7 error('v is not a matrix');
8 end
9 end