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: find_network_properties3.m
    path of file: ./repos/EEGapp/EEGapp/custom_stuff/Graph Theory
    
    the code of the file until where you have to start completion: function find_network_properties3

%   This function defines a network like Joon's paper, but normalizes
%   properties according to random networks

samp_freq = 500;
network_thresh = 0.3;
win = 10;   % number of seconds of EEG window
total_length = 1680;    % total number of seconds of EEG epoch

for subject = 2
    switch subject
        case 1
            sname = 'MDFA03';
            EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,18,19,20,22,23,24,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,45,46,47,50,51,52,53,54,55,58,59,60,61,62,65,66,67,70,71,72,75,76,77,78,79,80,83,84,85,86,87,90,91,92,93,96,97,98,101,102,103,104,105,106,108,109,110,111,112,116,117,118,122,123,129];
        case 2
            sname = 'MDFA05';
            EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,18,19,20,22,23,24,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,45,46,47,50,51,52,53,54,55,58,59,60,61,62,65,66,67,70,71,72,75,76,77,78,79,80,83,84,85,86,87,90,91,92,93,96,97,98,101,102,103,104,105,106,108,109,110,111,112,116,117,118,122,123,129];
        case 3
            sname = 'MDFA06';
            EEG_chan = [2,3,4,5,6,7,8,9,10,11,13,14,16,17,18,20,21,23,24,25,26,27,28,30,31,32,33,34,36,37,38,39,42,43,46,47,48,49,50,51,52,53,54,55,56,58,59,60,63,64,65,68,69,70,71,72,73,76,77,78,79,80,83,84,85,86,89,90,91,94,95,96,97,98,99,100,101,102,103,104,107,108,109,113,114,120];
        case 4
            sname = 'MDFA07';
            EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,17,18,20,21,23,24,25,26,27,28,30,31,32,33,34,36,37,38,40,41,42,45,46,47,48,49,50,52,53,54,55,56,59,60,61,63,65,66,69,70,71,72,73,74,77,78,79,80,81,84,85,86,87,90,91,92,94,95,96,97,98,99,100,101,102,103,104,108,109,110,114,120];
        case 5
            sname = 'MDFA10';
            EEG_chan = [2,3,4,5,6,8,9,10,12,13,15,16,17,19,20,21,23,24,25,26,27,28,30,31,32,33,34,36,37,38,39,42,43,46,47,48,49,50,51,54,54,55,56,57,60,61,62,65,68,69,70,71,72,73,76,77,78,79,80,83,84,85,86,89,90,91,94,95,96,97,98,100,101,102,106,107,108,112,113,118];
        case 6
            sname = 'MDFA11';
            EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,18,19,20,22,23,24,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,45,48,49,50,51,52,55,56,57,58,59,62,63,64,67,68,69,72,73,74,75,76,77,80,81,82,83,84,87,88,89,90,93,94,95,98,99,100,101,102,103,105,106,107,108,109,113,114,115,119,120,126];
        case 7
            sname = 'MDFA12';
            EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,18,19,20,22,23,24,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,45,46,47,50,51,52,53,54,55,58,59,60,61,62,65,66,67,70,71,72,75,76,77,78,79,80,83,84,85,86,87,90,91,92,93,96,97,98,101,102,103,104,105,106,108,109,110,111,112,116,117,118,122,123,129];
       case 8 
           sname = 'MDFA15';
           EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,18,19,20,22,23,24,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,45,46,47,50,51,52,53,54,55,58,59,60,61,62,65,66,67,70,71,72,75,76,77,78,79,80,83,84,85,86,87,90,91,92,93,96,97,98,100,101,102,103,104,105,107,108,109,110,111,115,116,117,121,122,128];
       case 9
           sname = 'MDFA17';

    
function find_network_properties3

%   This function defines a network like Joon's paper, but normalizes
%   properties according to random networks

samp_freq = 500;
network_thresh = 0.3;
win = 10;   % number of seconds of EEG window
total_length = 1680;    % total number of seconds of EEG epoch

for subject = 2
    switch subject
        case 1
            sname = 'MDFA03';
            EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,18,19,20,22,23,24,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,45,46,47,50,51,52,53,54,55,58,59,60,61,62,65,66,67,70,71,72,75,76,77,78,79,80,83,84,85,86,87,90,91,92,93,96,97,98,101,102,103,104,105,106,108,109,110,111,112,116,117,118,122,123,129];
        case 2
            sname = 'MDFA05';
            EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,18,19,20,22,23,24,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,45,46,47,50,51,52,53,54,55,58,59,60,61,62,65,66,67,70,71,72,75,76,77,78,79,80,83,84,85,86,87,90,91,92,93,96,97,98,101,102,103,104,105,106,108,109,110,111,112,116,117,118,122,123,129];
        case 3
            sname = 'MDFA06';
            EEG_chan = [2,3,4,5,6,7,8,9,10,11,13,14,16,17,18,20,21,23,24,25,26,27,28,30,31,32,33,34,36,37,38,39,42,43,46,47,48,49,50,51,52,53,54,55,56,58,59,60,63,64,65,68,69,70,71,72,73,76,77,78,79,80,83,84,85,86,89,90,91,94,95,96,97,98,99,100,101,102,103,104,107,108,109,113,114,120];
        case 4
            sname = 'MDFA07';
            EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,17,18,20,21,23,24,25,26,27,28,30,31,32,33,34,36,37,38,40,41,42,45,46,47,48,49,50,52,53,54,55,56,59,60,61,63,65,66,69,70,71,72,73,74,77,78,79,80,81,84,85,86,87,90,91,92,94,95,96,97,98,99,100,101,102,103,104,108,109,110,114,120];
        case 5
            sname = 'MDFA10';
            EEG_chan = [2,3,4,5,6,8,9,10,12,13,15,16,17,19,20,21,23,24,25,26,27,28,30,31,32,33,34,36,37,38,39,42,43,46,47,48,49,50,51,54,54,55,56,57,60,61,62,65,68,69,70,71,72,73,76,77,78,79,80,83,84,85,86,89,90,91,94,95,96,97,98,100,101,102,106,107,108,112,113,118];
        case 6
            sname = 'MDFA11';
            EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,18,19,20,22,23,24,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,45,48,49,50,51,52,55,56,57,58,59,62,63,64,67,68,69,72,73,74,75,76,77,80,81,82,83,84,87,88,89,90,93,94,95,98,99,100,101,102,103,105,106,107,108,109,113,114,115,119,120,126];
        case 7
            sname = 'MDFA12';
            EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,18,19,20,22,23,24,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,45,46,47,50,51,52,53,54,55,58,59,60,61,62,65,66,67,70,71,72,75,76,77,78,79,80,83,84,85,86,87,90,91,92,93,96,97,98,101,102,103,104,105,106,108,109,110,111,112,116,117,118,122,123,129];
       case 8 
           sname = 'MDFA15';
           EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,18,19,20,22,23,24,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,45,46,47,50,51,52,53,54,55,58,59,60,61,62,65,66,67,70,71,72,75,76,77,78,79,80,83,84,85,86,87,90,91,92,93,96,97,98,100,101,102,103,104,105,107,108,109,110,111,115,116,117,121,122,128];
       case 9
           sname = 'MDFA17';
           EEG_chan = [2,3,4,5,6,7,9,10,11,12,13,15,16,18,19,20,22,23,24,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,45,46,47,50,51,52,53,54,55,58,59,60,61,62,65,66,67,70,71,72,75,76,77,78,79,80,83,84,85,86,87,90,91,92,93,96,97,98,101,102,103,104,105,106,108,109,110,111,112,116,117,118,122,123,129];
    end
    
%     Larray = zeros(10,total_length/win);
%     Carray = zeros(10,total_length/win);
%     geffarray = zeros(10,total_length/win);
%     bswarray = zeros(10,total_length/win);
%     Qarray = zeros(10,total_length/win);

     Larray = zeros(1,total_length/win);
     Carray = zeros(1,total_length/win);
     geffarray = zeros(1,total_length/win);
     bswarray = zeros(1,total_length/win);
     Qarray = zeros(1,total_length/win);

    
    for bp = [1:5]
        switch bp
            case 1
                bpname = ' all';
                lp = 1;
                hp = 30;
            case 2
                bpname = ' delta';
                lp = 1;
                hp = 4;
            case 3
                bpname = ' theta';
                lp = 4;
                hp = 8;
            case 4
                bpname = ' alpha';
                lp = 8;
                hp = 13;
            case 5
                bpname = ' beta';
                lp = 13;
                hp = 30;
        end