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: test_MS_splitting_misfit.m
    path of file: ./repos/MSAT/tests
    
    the code of the file until where you have to start completion: %% test_MS_splitting_misfit_Zero_cases
   % check misfit between two identical splitting operators is zero for different
   % polarisations, frequencies and operators. 

   fast = [0 30 45 60 90]; 
   tlag = [0.003 0.01 0.4 3 20 ];
   spol = [0 60 135 150 180 ] ;
   freq = [100 10 1.0 0.1 0.01] ;
   
   for i=1:length(fast)
      misfit = MS_splitting_misfit(
    
function test_MS_splitting_misfit_reversed
%   % check misfit between two identical splitting operators is zero for different
%   % polarisations, frequencies and operators. 
%
%   % NOTE, this test does not give identical results. I think that this is the
%     non-commutative nature of splitting operators rearing its head. 
%
%   fast1 = 30 ; tlag1 = 1.5 ;
%   fast2 = 60 ; tlag2 = 2.0 ;
%   spol = 45 ;
%   freq = 0.1 ;
%   
%   misfit1 = MS_splitting_misfit(fast1,tlag1,fast2,tlag2,spol,freq) ;
%   misfit2 = MS_splitting_misfit(fast2,tlag2,fast1,tlag1,spol,freq) ;
%
%   assertElementsAlmostEqual(misfit1, misfit2, 'absolute',0.001) ;
%
%end