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: mrdivide.m
    path of file: ./repos/OPTI/Utilities/@adiff
    
    the code of the file until where you have to start completion: function c = mrdivide(a,b)
% MRDIVIDE implements a/b, where either a or b is an adiff object.
% It is mapped to a./b where possible (i.e. when b has length 1), and
% yields an error otherwise.

    
function c = mrdivide(a,b)
% MRDIVIDE implements a/b, where either a or b is an adiff object.
% It is mapped to a./b where possible (i.e. when b has length 1), and
% yields an error otherwise.

if prod(size(b))==1
   c = times(a,1./b);
else
   error('Cannot use / for adiff objects when denominator is nonscalar');
end