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: CreateModel3.m
    path of file: ./repos/uav_multihop_adhoc
    
    the code of the file until where you have to start completion: function model=CreateModel3()

    H = imread('ChrismasTerrain.tif'); % Get elevation data
    H (H < 0) = 0;
    MAPSIZE_X = size(H,2); % x index: columns of H
    MAPSIZE_Y = size(H,1); % y index: rows of H
    [X,Y] = meshgrid(1:MAPSIZE_X,1:MAPSIZE_Y); % Create all (x,y) points to plot
    
    % Map limits
    xmin= 1;
    xmax= MAPSIZE_X;
    
    ymin= 1;
    ymax= MAPSIZE_Y;
    
    zmin = 100;
    zmax = 200;  
    
    % Threats as cylinders
    R1=30;  % Radius
    x1 = 400; y1 = 500; z1 = 100; % center

    R2=35;  % Radius
    x2 = 600; y2 = 200; z2 = 150; % center


    
function model=CreateModel3()

    H = imread('ChrismasTerrain.tif'); % Get elevation data
    H (H < 0) = 0;
    MAPSIZE_X = size(H,2); % x index: columns of H
    MAPSIZE_Y = size(H,1); % y index: rows of H
    [X,Y] = meshgrid(1:MAPSIZE_X,1:MAPSIZE_Y); % Create all (x,y) points to plot
    
    % Map limits
    xmin= 1;
    xmax= MAPSIZE_X;
    
    ymin= 1;
    ymax= MAPSIZE_Y;
    
    zmin = 100;
    zmax = 200;  
    
    % Threats as cylinders
    R1=30;  % Radius
    x1 = 400; y1 = 500; z1 = 100; % center

    R2=35;  % Radius
    x2 = 600; y2 = 200; z2 = 150; % center

    R3=35;  % Radius
    x3 = 500; y3 = 350; z3 = 150; % center

    R4=40;  % Radius
    x4 = 350; y4 = 200; z4 = 150; % center

    R5=45;  % Radius
    x5 = 800; y5 = 550; z5 = 150; % center

    R6=30;  % Radius
    x6 = 750; y6 = 750; z6 = 150; % center
    
    R7=25;  % Radius
    x7 = 200; y7 = 300; z7 = 150; % center
    
    R8=40;  % Radius
    x8 = 300; y8 = 500; z8 = 150; % center
    
    R9=50;  % Radius
    x9 = 650; y9 = 550; z9 = 150; % center
    
    R10=25;  % Radius
    x10 = 600; y10 = 720; z10 = 150; % center
    
    R11=30;  % Radius
    x11 = 400; y11 = 780; z11 = 150; % center
    
    R12=35;  % Radius
    x12 = 580; y12 = 60; z12 = 150; % center
 
    % Start and end