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: AD.m
    path of file: ./repos/iptutorials/TB_IPR/TUT.IMG.point_processes_voronoi/matlab
    
    the code of the file until where you have to start completion: function sol = AD(V, R )
% computes AD (Area Disorder) parameter
% V: Vertices from Voronoi
% R: Regions of Voronoi

s=[];

    
function sol = AD(V, R )
% computes AD (Area Disorder) parameter
% V: Vertices from Voronoi
% R: Regions of Voronoi

s=[];
 for i = 1:length(R) 
    if all(R{i}~=1)   % If at least one of the indices is 1, 
                      % then it is an open region 
    s=[s;polyarea(V(R{i},1),V(R{i},2))];
    end