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: trajSetMatch.m
    path of file: ./repos/LADAC/control/trajectory
    
    the code of the file until where you have to start completion: function traj = trajSetMatch(traj, position, active_section)

    
function traj = trajSetMatch(traj, position, active_section)
% trajSetMatch sets the nearest point on the trajectory.
%   The current trajectory section and the dimensionless time
%   parameter are set to the point with minimum euclidean distance in
%   respect to the given vehicle position.
%
% Inputs:
%   traj                trajectory struct, see trajInit
%
%   position            vehicle position [x; y; z] in local geodetic
%                       coordinate system
%                       (3x1 vector), in m
%
%   active_section      *placeholder for later use*
%                       current section of the trajectory
%                       (scalar), dimensionless
%
% Outputs:
%   traj                trajectory struct, see trajInit
%
% Syntax:
%   traj = trajSetMatch(traj, position, active_section)
%
% See also: trajGetMatch, trajInit
%

% Disclamer:
%   SPDX-License-Identifier: GPL-3.0-only
% 
%   Copyright (C) 2020-2022 Fabian Guecker
%   Copyright (C) 2022 TU Braunschweig, Institute of Flight Guidance
% *************************************************************************

[ active_section, t ] = trajGetMatch( traj, position, active_section );

traj.active_section = active_section;
traj.current_time = t;

end