Main Content

Integral nonlinearity (INL) and differential nonlinearity (DNL) of data converters

calculates the integral nonlinearity (INL) and differential nonlinearity (DNL) errors of
ADCs and DACs. The function calculates INL and DNL using the analog and digital input output
data and the nominal analog dynamic range of the converter. The function can calculate INL
and DNL either using the endpoint method, or the best fit method, or using both
methods.`s`

= inldnl(`analog`

,`digital`

,`range`

,`type`

)

The `inldnl`

function only analyzes converters with a finite number
of bits. That means ADCs must have saturation and quantization. The function ignores any
digital value pairs that contain NaN values.

calculates the INL and DNL errors of ADCs and DACs using one or more name-value pair
arguments in addition to the input arguments in the previous syntax. Enclose each argument
name in quotes. Unspecified arguments take default values.`s`

= inldnl(___,Name,Value)

**Note**

Initial conditions and other anomalous data can cause this function to behave erratically. This function can analyze nonmonotonic converters, but it cannot handle multiple distinct occurrences of the same code in one transfer function.