% Antti Hannukainen 1.3.2006
%
%
%
% Convert  x = [ x1 x2 x3 x4 ....]
% to format  u = [ x1 ; x2 ;x3 ...]
%
% function x = bvp_x2u(u)
%
%

function u = bvp_x2u(x)

u = [];

for i=1:(size(x,2))

  u = [u; x(:,i)];

end

length(u);