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: angles.m
    path of file: ./repos/chebfun/@chebtech1
    
    the code of the file until where you have to start completion: function out = angles(n)
%ANGLES   Return the angles of the Chebyshev points of 1st kind in [-1, 1].
%   CHEBTECH1.ANGLES(N) returns ACOS(X), where X are the N Chebyshev points of
%   the 1st kind in [-1, 1].
%
% See also POINTS, CHEBPTS, LENGTH.
%
% Copyright 2017 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

    
function out = angles(n)
%ANGLES   Return the angles of the Chebyshev points of 1st kind in [-1, 1].
%   CHEBTECH1.ANGLES(N) returns ACOS(X), where X are the N Chebyshev points of
%   the 1st kind in [-1, 1].
%
% See also POINTS, CHEBPTS, LENGTH.
%
% Copyright 2017 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

out = (n-.5:-1:.5).'*pi/n;

end