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: min3.m
    path of file: ./repos/chebfun/@chebfun3
    
    the code of the file until where you have to start completion: function [val, pos] = min3(f)
%MIN3   Global minimum of a CHEBFUN3.
%   [VAL, POS] = MIN3(F) returns the global minimum VAL and the position 
%   POS of the global minimum of a CHEBFUN3 object F.
%
% See also CHEBFUN3/MINANDMAX3.

% Copyright 2017 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

% Call MINANDMAX3:
[val, pos] = minandmax3(f);


    
function [val, pos] = min3(f)
%MIN3   Global minimum of a CHEBFUN3.
%   [VAL, POS] = MIN3(F) returns the global minimum VAL and the position 
%   POS of the global minimum of a CHEBFUN3 object F.
%
% See also CHEBFUN3/MINANDMAX3.

% Copyright 2017 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

% Call MINANDMAX3:
[val, pos] = minandmax3(f);

% Extract minimum:
val = val(1);
pos = pos(1, :);

end