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: load_configuration.m
    path of file: ./repos/matlab_owc/matlab_codes
    
    the code of the file until where you have to start completion: 
function [ pt_input_parameters ] = load_configuration( ps_filename )

%
% loadConfiguration
%
% loadConfiguration loads a set of properties from a file
% and returns the results in a structure variable.
%
% The file is formatted as value pairs (one line per value):
%
%    key_name=key_value
%
% Also, any line starting with a '%' will be ignored.
%
% Note: all values of key_name must be valid matlab
%       variable names.
%
%       In the case of duplicate entries, the last key
%       to appear in the file will override previous
%       definitions.
%
%       Invalid lines are disregarded.
%
%  Jason Fabritz, 2001
%

disp(' ')
disp('__________________________________________')
disp('CONFIGURATION FILE')
disp('__________________________________________')
disp(ps_filename)
disp(' ')

lh_file = fopen( ps_filename ) ;

pt_input_parameters = struct( 'CONFIGURATION_FILE', ps_filename ) ;

while not( feof( lh_file ) ) ;   
   ls_line = fgetl( lh_file ) ;
    
function [ pt_input_parameters ] = load_configuration( ps_filename )

%
% loadConfiguration
%
% loadConfiguration loads a set of properties from a file
% and returns the results in a structure variable.
%
% The file is formatted as value pairs (one line per value):
%
%    key_name=key_value
%
% Also, any line starting with a '%' will be ignored.
%
% Note: all values of key_name must be valid matlab
%       variable names.
%
%       In the case of duplicate entries, the last key
%       to appear in the file will override previous
%       definitions.
%
%       Invalid lines are disregarded.
%
%  Jason Fabritz, 2001
%

disp(' ')
disp('__________________________________________')
disp('CONFIGURATION FILE')
disp('__________________________________________')
disp(ps_filename)
disp(' ')

lh_file = fopen( ps_filename ) ;

pt_input_parameters = struct( 'CONFIGURATION_FILE', ps_filename ) ;

while not( feof( lh_file ) ) ;   
   ls_line = fgetl( lh_file ) ;
   if length( ls_line ) > 0 ;
      if ls_line( 1:1 ) ~= '%' ;
	   	ln_equals_index = findstr( '=', ls_line ) ;
		   if length( ln_equals_index ) > 0  ;
      		if ln_equals_index( 1 ) > 1 ;
   	   	   sKey = ls_line( 1 : ln_equals_index( 1 ) - 1 ) ;
	         	sValue = deblank( ls_line( ln_equals_index( 1 ) + 1 : length( ls_line ) ) ) ;
		         pt_input_parameters = setfield( pt_input_parameters, sKey, sValue ) ;
	      	end