WOLFRAM SYSTEM MODELER
ExperimentalRelation |
SystemModel["SystemModelerExtras.Experimental.Units.Examples.ExperimentalRelation"]
Using inUnit to adapt a polynomial fitted to experimental data for use in a model with units.
The experimental data was collected with measurements in the units degrees and square centimeters, and a unitless second order polynomial has been fitted to the data. In this example, the experimental relation is represented as the function fittedPolynomial, where all inputs and outputs have unit "1". To use the function, inUnit is used to divide the input and to multiply the output by their respective units of measurement.
Note that unit checking would detect errors such as mixing up the units of measuremets of inputs and outputs, but would not detect the mistake to divide the input by radians instead of degrees. To achieve that level of unit safety, see ExperimentalRelationSafe.