-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev_newInfo' of https://github.com/wiggins-lab/SuperSegger
- Loading branch information
Showing
24 changed files
with
1,861 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
function [ v ] = col( v ) | ||
% row : makes v into a col vector. | ||
% INPUT : | ||
% v: array or row vector. | ||
% OUTPUT : | ||
% v: vector converted to row vector. | ||
% Copyright (C) 2016 Wiggins Lab | ||
% Written by Stella Stylianidou, Paul Wiggins. | ||
% University of Washington, 2016 | ||
% This file is part of SuperSegger. | ||
% | ||
% SuperSegger is free software: you can redistribute it and/or modify | ||
% it under the terms of the GNU General Public License as published by | ||
% the Free Software Foundation, either version 3 of the License, or | ||
% (at your option) any later version. | ||
% | ||
% SuperSegger is distributed in the hope that it will be useful, | ||
% but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
% GNU General Public License for more details. | ||
% | ||
% You should have received a copy of the GNU General Public License | ||
% along with SuperSegger. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
ss = size(v); | ||
|
||
if ~any( ss==1 ) | ||
v = v(:); | ||
elseif ss(1) == 1 | ||
v = v'; | ||
end | ||
|
||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.