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: changeMap.m
    path of file: ./repos/chebfun/@unbndfun
    
    the code of the file until where you have to start completion: function f = changeMap(f, newDom)
%MAP   Map the domain of F to NEWDOM via a nonlinear change of variable.
%   F = CHANGEMAP(F, NEWDOM) returns the original F but defined on a new domain
%   [NEWDOM(1) NEWDOM(2)]. The new domain must remain unbounded.
%
% See also CREATEMAP.

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


    
function f = changeMap(f, newDom)
%MAP   Map the domain of F to NEWDOM via a nonlinear change of variable.
%   F = CHANGEMAP(F, NEWDOM) returns the original F but defined on a new domain
%   [NEWDOM(1) NEWDOM(2)]. The new domain must remain unbounded.
%
% See also CREATEMAP.

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

% Assign a new nonlinear map to f:
f.mapping = unbndfun.createMap(newDom);

% Assign the new end