This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

High Precision Calculations in Interpolation Block

This example shows how to perform high precision calculations in the Interpolation Using Prelookup block using internal rules. The Interpolation block allows the data type for intermediate results to be set.

In this model, the table is stored using an 8-bit data type, and the calculations are performed using a 16-bit data type. The default Intermediate results data type is Inherit: Inherit via internal rule that tries to maximize the precision of the intermediate results.

To see this in the generated code, open the model and build it.

Was this topic helpful?