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: log.m
    path of file: ./repos/mtex/geometry/@orientation
    
    the code of the file until where you have to start completion: function v = log(ori,ori_ref,varargin)
% misorientation vector between two orientations 
%
% The misorientation vector can also be seen as the projection of an
% orientarion onto the tangential space of the orientation space centered
% at the orientation |ori_ref|. The inverse mapping from the tantential
% space onto the orientation space is the exponential map |<Miller.exp.html
% exp>|.
%
% Syntax
%   m = log(mori) % the misorientation vector in crystal coordinats 
%
%   % the misorientation vector in crystal coordinats 
%   m = log(ori,ori_ref)
%
%   % the misorientation vector in specimen coordinats
%   v = log(ori,ori_ref,'left')
%   v = ori_ref .* m
%
% Input
%  mori - misorientation
%  ori - @orientation
%  ori_ref - @orientation
%
% Output
%  m - @Miller

    
function v = log(ori,ori_ref,varargin)
% misorientation vector between two orientations 
%
% The misorientation vector can also be seen as the projection of an
% orientarion onto the tangential space of the orientation space centered
% at the orientation |ori_ref|. The inverse mapping from the tantential
% space onto the orientation space is the exponential map |<Miller.exp.html
% exp>|.
%
% Syntax
%   m = log(mori) % the misorientation vector in crystal coordinats 
%
%   % the misorientation vector in crystal coordinats 
%   m = log(ori,ori_ref)
%
%   % the misorientation vector in specimen coordinats
%   v = log(ori,ori_ref,'left')
%   v = ori_ref .* m
%
% Input
%  mori - misorientation
%  ori - @orientation
%  ori_ref - @orientation
%
% Output
%  m - @Miller
%  v - @vector3d
%
% See also
% orientation/logm vector3d/exp Miller/exp

if check_option(varargin,'noSymmetry')
  v = log@quaternion(ori,ori_ref,varargin{:});
  return
end