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: doCompileOccurenceTextonsSplit.m
    path of file: ./repos/Image-Harmonization-Dataset-iHarmony4/Lalonde and Efros/colorStatistics/mycode
    
    the code of the file until where you have to start completion: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% function doCompileOccurencesTextonsSplit
%   Compiles
    
function doCompileOccurencesTextonsSplit
%   Compiles the textons results obtained from the training data
% 
% Input parameters:
%
% Output parameters:
%
%    
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function doCompileOccurenceTextonsSplit(sClass)global cumulative1stOrder cumulative2ndOrder;
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright 2006-2007 Jean-Francois Lalonde
% Carnegie Mellon University
% Do not distribute
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

addpath '../database/';

sClass = str2double(sClass);
switch sClass
    case 1
        subClass = 'coast';
    case 2 
        subClass = 'forest';
    case 3
        subClass = 'highway';
    case 4
        subClass = 'insideCity';
    case 5
        subClass = 'mountain';
    case 6 
        subClass = 'openCountry';
    case 7
        subClass = 'street';
    case 8
        subClass = 'tallBuilding';
    otherwise
        error('Invalid option %d', sClass);
end