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: paror.m
    path of file: ./repos/mtex/EBSDAnalysis/@grain2d
    
    the code of the file until where you have to start completion: function cumpl = paror(grains,varargin)
% Returns the cummulative particle projection function.
% based on Panozzo, R., 1983. "Two-dimensional analysis of shape
% fabric using projections of digitized lines in a plane". 
% Tectonophysics 95, 279-294.
%
% Input:

    
function cumpl = paror(grains,varargin)
% Returns the cummulative particle projection function.
% based on Panozzo, R., 1983. "Two-dimensional analysis of shape
% fabric using projections of digitized lines in a plane". 
% Tectonophysics 95, 279-294.
%
% Input:
%  grains - @grain2d
%
% Output:
%  cumpl  - cummulative projection length
%
% Options:
%  omega  - list of angles used in the projection function (default [0:1:180]*degree)  
%

if nargin > 1 && isnumeric(varargin{1})
  omega = varargin{1};
else
  omega = get_option(varargin,'omega',linspace(0,pi,181));
end