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: convertEyeToWorldCoord.m
    path of file: ./repos/gkaModelEye/model/coord
    
    the code of the file until where you have to start completion: function worldCoord = convertEyeToWorldCoord(eyeCoord)
% Convert a coordinate from world space to eye space
%
% Syntax:
%  worldCoord = convertEyeToWorldCoord(eyeCoord)
%
% Description
%   Separate coordinate systems are used for the "eye" and the "world".
%   This routine takes a world coordinate and returns the eye coordinate.
%
%   The world coordinate frame is in mm units and has the dimensions
%   (X,Y,Z). The diagram is of a cartoon head (taken from Leszek Swirski),
%   being viewed from above:
%
%    ^
%    |
%    |    .-.
% -Z |   |   | <- Head
%    +   `^u^'

    
function worldCoord = convertEyeToWorldCoord(eyeCoord)
% Convert a coordinate from world space to eye space
%
% Syntax:
%  worldCoord = convertEyeToWorldCoord(eyeCoord)
%
% Description
%   Separate coordinate systems are used for the "eye" and the "world".
%   This routine takes a world coordinate and returns the eye coordinate.
%
%   The world coordinate frame is in mm units and has the dimensions
%   (X,Y,Z). The diagram is of a cartoon head (taken from Leszek Swirski),
%   being viewed from above:
%
%    ^
%    |
%    |    .-.
% -Z |   |   | <- Head
%    +   `^u^'
% +Z |
%    |
%    |      W <- Camera    (As seen from above)
%    V
%
%     <-----+----->
%        -X   +X
%
% +X = right
% +Y = up
% +Z = front (towards the camera)
%
%   The origin [0,0,0] corresponds to the corneal apex when the optical
%   axis of the eye and the camera axis are aligned, and when the corneal
%   front surface is aligned with the optical axis of the eye.
%
% Inputs:
%   eyeCoord              - nx3 vector that gives the coordinates (in mm)
%                           of a point in eyeWorld space with the
%                           dimensions p1, p2, p3.
%
% Outputs:
%   worldCoord            - 3xn vector that specifies points in world 
%                           coordinates (x, y, z).
%
% Examples:
%{
    % Confirm invertibility of the transform
    eyeCoord = rand(10,3);
    eyeCoordRecovered = convertWorldToEyeCoord(convertEyeToWorldCoord(eyeCoord));
    assert(max(max(eyeCoord-eyeCoordRecovered)) < eps);
%}

% Rearrange the eyeWorld dimensions to switch from eye to world
% coordinate space. We also transpose as eye coordinates are row vectors
% and world coordinates are column vectors
worldCoord = eyeCoord(:,[2 3 1])';

end