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: remove_duplicate_simplices.m
    path of file: ./repos/gptoolbox/mesh
    
    the code of the file until where you have to start completion: function [SF,SFI,SFJ] = remove_duplicate_simplices(F)
  % REMOVE_DUPLICATE_SIMPLICES Remove duplicate simplices (regardless of order)
  %
  % Inputs:
  %   F  #F by ss list of simplex indices
  % Outputs:

    
function [SF,SFI,SFJ] = remove_duplicate_simplices(F)
  % REMOVE_DUPLICATE_SIMPLICES Remove duplicate simplices (regardless of order)
  %
  % Inputs:
  %   F  #F by ss list of simplex indices
  % Outputs:
  %   SF  #SF by ss list of unique simplices (maintaining original order of
  %     first simplex found)
  %   SFI  #SF list so that SF = F(SFI,:)
  %   SFJ  #SFI list so that F = SF(SFJ,:)
  [~,SFI,SFJ] = unique(sort(F,2),'rows','stable');
  SF = F(SFI,:);
end