function result = ecoderinstalled(modelName) %#ok<INUSD> 
    % ECODERINSTALLED - Check whether Embedded Coder is installed for current
    % user.  This includes testing for a license (but NOT checking
    % it out) and testing for a particular file associated with ecoder.
    % Return 1 if installed, otherwise return 0.


    % Copyright 1994-2022 The MathWorks, Inc.
    %

    % modelName parameter is not used in this function, keep it anyway for
    % backwards compatibility.

    result = dig.isProductInstalled('Embedded Coder');
end
