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: rdivide.m
    path of file: ./repos/mtex/PoleFigureAnalysis/@PoleFigure
    
    the code of the file until where you have to start completion: function pf = rdivide(arg1,arg2)
% implements pf1 ./ b and a ./ pf2

    
function pf = rdivide(arg1,arg2)
% implements pf1 ./ b and a ./ pf2
%
% overload the .* operator, i.e. one can now write x .* pf in order to
% scale the @PoleFigure pf by the factor x 
%
% See also
% PoleFigure/PoleFigure PoleFigure/plus PoleFigure/minus

if isa(arg2,'double')
  arg2 = 1./arg2;
else
  for i = 1:arg2.numPF, arg2.allI{i} = 1./arg2.allI{i};end