doubleArrayToRowVector.m
% This function is part of the NMSM Pipeline, see file for full license.
%
% Turns an Array of double into a RowVector
%
% (Array of double) -> (RowVector)
% Print results of optimization to console or file
function output = doubleArrayToRowVector(doubleArray)
import org.opensim.modeling.RowVector
output = RowVector(length(doubleArray));
for i=1:length(doubleArray)
output.set(i-1, doubleArray(i))
end
end