function [b, errstr, errid] = isfixptinstalled
%ISFIXPTINSTALLED   Returns true if fixedpoint is installed.

%   Author(s): J. Schickler
%   Copyright 1988-2004 The MathWorks, Inc.
%   $Revision: 1.1.6.3 $  $Date: 2004/07/14 06:47:55 $

b = license('test', 'Fixed_Point_Toolbox') && ~isempty(ver('fixedpoint'));

if b
    errstr = '';
    errid  = '';
else
    errstr = sprintf('%s\n%s', 'Fixed-Point Toolbox is not available.', ...
        'Make sure that it is installed and that a license is available.');
    errid  = 'noFixPt';
end

% [EOF]
