Main Content
hasDesignRangeSpecification
Class: coder.FixPtConfig
Namespace: coder
Determine whether parameter has design range
Syntax
hasDesignRange =
hasDesignRangeSpecification(fcnName,paramName)
Description
returns true if the parameter, hasDesignRange
=
hasDesignRangeSpecification(fcnName
,paramName
)param_name
in function,
fcn
, has a design range specified.
Input Arguments
Output Arguments
Examples
Verify That a Parameter Has a Design Range Specification
% Set up the fixed-point configuration object cfg = coder.config('fixpt'); cfg.TestBenchName = 'dti_test'; cfg.addDesignRangeSpecification('dti', 'u_in', -1.0, 1.0); cfg.ComputeDerivedRanges = true; % Verify that the 'dti' function parameter 'u_in' has design range hasDesignRanges = cfg.hasDesignRangeSpecification('dti','u_in')
hasDesignRanges = 1