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: fitArea.m
    path of file: ./repos/mtex/geometry/@crystalShape
    
    the code of the file until where you have to start completion: function cS = fitArea(cS,faceArea)
% change habitus of crystal shape to fit given faceAreas
% 
% Syntax
%
%   cS = fitArea(cS,faceArea)
%
% Input
%  cS - @crystalShape
%  faceArea - list of desired face areas
%
% Output
%  cS - @crystalShape
%


    
function cS = fitArea(cS,faceArea)
% change habitus of crystal shape to fit given faceAreas
% 
% Syntax
%
%   cS = fitArea(cS,faceArea)
%
% Input
%  cS - @crystalShape
%  faceArea - list of desired face areas
%
% Output
%  cS - @crystalShape
%

% we are going to specify the distance of faces to the origin directly
N = cS.N(:);
if cS.habitus >0
  cS.N = N ./ ((abs(N.h) * cS.extension(1)).^cS.habitus + ...
    (abs(N.k) * cS.extension(2)).^cS.habitus + ...
    (abs(N.l) * cS.extension(3)).^cS.habitus).^(1/cS.habitus);
  cS.habitus = 0; 
end