approximate
Class: FunctionApproximation.LUTSolution
Namespace: FunctionApproximation
Generate a Lookup Table block or lookup table as a MATLAB function from a
FunctionApproximation.LUTSolution
Syntax
Description
approximate(
generates either a
Simulink® model containing a subsystem made up of the Lookup
Table block, or a lookup table as a MATLAB® function, depending on the solution
)ApproximateSolutionType
property of the FunctionApproximation.Options
object. Data and breakpoints of the
generated lookup table are specified by the FunctionApproximation.LUTSolution
object,
solution
. The generated Lookup Table block is
surrounded with Data Type Conversion blocks.
approximate(
generates a lookup table as a MATLAB function with the name of the generated .m script specified by
solution
,'Name',fileName
)fileName
. This option is only available when the
ApproximateSolutionType
property of FunctionApproximation.Options
is set to
MATLAB
.
approximate(
generates a lookup table as a MATLAB function with the file path for the generated .m script specified by
solution
,'Name',fileName
,'Path',filePath
)filePath
. This option is only available when the
ApproximateSolutionType
property of FunctionApproximation.Options
is set to
MATLAB
.
Input Arguments
Examples
Version History
Introduced in R2018a
See Also
Apps
Classes
FunctionApproximation.Problem
|FunctionApproximation.Options
|FunctionApproximation.LUTSolution
|FunctionApproximation.LUTMemoryUsageCalculator