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: arDeleteStates.m
    path of file: ./repos/d2d/arFramework3/Examples/Sobotta_Frontiers2017/Helper
    
    the code of the file until where you have to start completion: % This function can be used to remove states.
% WARNING: This function can only be used immediately after loading a model 
% and *before* loading any data. Using the function after loading data will
% result in model corruption and potentially segmentation faults.

function arDeleteStates( m, removedSta
    
function can be used to remove states.
% WARNING: This function can only be used immediately after loading a model 
% and *before* loading any data. Using the function after loading data will
% result in model corruption and potentially segmentation faults.

function arDeleteStates( m, removedStates )

    global ar;

    notFound = setdiff( removedStates, ar.model(m).x );
    if ( length( notFound ) > 0 )
        fprintf( 'Did not find the following states: ' );
        fprintf( '%s ', notFound{:} );
    end