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: calc_struct_masks.m
    path of file: ./repos/DicomToolboxMatlab/dicom_import
    
    the code of the file until where you have to start completion: function structures = calc_struct_masks(rtss_path, xVec, yVec, zVec)
% The function calculates logical masks of structures defined in RTSTRUCT

    
function structures = calc_struct_masks(rtss_path, xVec, yVec, zVec)
% The function calculates logical masks of structures defined in RTSTRUCT
% dicom file. The grid is defined by the grid vectors xVec, yVec, zVec.
% Interpolation between binary slices is based on the algorithm presented
% in Schenk et al., Efficient semiautomatic segmentation of 3D objects in
% medical images.
%
% Hubert Gabrys <hubert.gabrys@gmail.com>
% License: MIT
%

% structures to skip
struct2skip = {'AUSSENKONTUR', 'SKIN'};
%struct2skip = {''};

% calculate structures' masks
dicom_info = read_dicominfo(rtss_path, true, false);
list_of_contoured_strucs = fieldnames(dicom_info.ROIContourSequence);
for j = 1:length(list_of_contoured_strucs) % for every contoured structure
    roinumber  = dicom_info.ROIContourSequence.(list_of_contoured_strucs{j}).ReferencedROINumber;
    struct_name = getStructName(dicom_info,roinumber);
    if nnz(ismember(struct2skip, struct_name)) % don't calculate structures defined in struct2skip
        continue;
    end