You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
442 B
Matlab

7 years ago
% SBEACH toolbox - fsbeach_makecolumn
% Written by Joshua Simmons 11/2017
% convert to column vectors
% Syntax:
% OPT = fsbeach_makecolumn(OPT,vars)
%
% Input:
% OPT: toolbox OPT structure
% vars: variable names to be checked in structure
function OPT = fsbeach_makecolumn(OPT,vars)
for ii = 1:length(vars)
if ~iscolumn(OPT.(vars{ii}))
OPT.(vars{ii}) = OPT.(vars{ii})';
end
end
end