Main Content

supports

Class: matlab.unittest.constraints.Tolerance
Package: matlab.unittest.constraints

Determine whether tolerance supports specified data type

Syntax

TF = supports(tolObj,typeVal)

Description

TF = supports(tolObj,typeVal) determines whether the tolerance supports a specific data type. It returns true or false (logical 0 or 1).

The supports method provides the ability for a tolerance author to specify support for data types. Generally, the method operates by examining the type of typeVal to determine whether it is supported.

Input Arguments

tolObj

Tolerance instance

typeVal

Value used to determine tolerance support