You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: changedates.m
    path of file: ./repos/matlab_owc/matlab_codes
    
    the code of the file until where you have to start completion: 
% This function changes dates in format YYYYMMDDhhmmss to a
% decimal number. The input dates can be in either a single
% row or a single column, but the output dates are organised
% in a single column.
%
% A. Wong, 29 May 2001
%
% C.Cabanes June 2013 : speed up this function

function [dates]=changedates(dates_for
    
function changes dates in format YYYYMMDDhhmmss to a
% decimal number. The input dates can be in either a single
% row or a single column, but the output dates are organised
% in a single column.
%
% A. Wong, 29 May 2001
%
% C.Cabanes June 2013 : speed up this function

function [dates]=changedates(dates_format2);


% dates_format2 to single column

if size(dates_format2,2)>1
dates_format2=dates_format2';
end