Main Content

removeDesignRangeSpecification

Class: coder.FixPtConfig
Namespace: coder

Remove design range specification from parameter

Syntax

removeDesignRangeSpecification(fcnName,paramName)

Description

removeDesignRangeSpecification(fcnName,paramName) removes the design range information specified for parameter, paramName, in function, fcnName.

Input Arguments

expand all

Function name, specified as a string.

Data Types: char

Parameter name, specified as a string.

Data Types: char

Examples

Remove Design Range Specifications

% 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')
% Now clear the design ranges and verify that 
% hasDesignRangeSpecification returns false
cfg.removeDesignRangeSpecification('dti', 'u_in')
hasDesignRanges = cfg.hasDesignRangeSpecification('dti','u_in')