approximate
R2026bClass: FunctionApproximation.LUTSolution
Namespace: FunctionApproximation
Generate Lookup Table block or lookup table as MATLAB function from
FunctionApproximation.LUTSolution
Syntax
Description
approximate( generates a lookup
table approximation from a solution)FunctionApproximation.LUTSolution object. The output depends on the
ApproximateSolutionType property of the associated FunctionApproximation.Options object.
If
ApproximateSolutionTypeproperty is set to'MATLAB', this syntax creates one MATLAB® function file for each lookup table insolution.If
ApproximateSolutionTypeis set to'Simulink',approximate, this syntax creates a Simulink® model containing a subsystem with a Lookup Table block surrounded by Data Type Conversion blocks. Ifsolutioncontains multiple lookup tables, the model uses a shared prelookup stage with separate interpolation stages for each table.
approximate(
generates a lookup table as a MATLAB function with the name of the generated solution,'Name',fileName).m script
specified by fileName. This syntax applies only 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 solution,'Name',fileName,'Path',filePath).m
script specified by filePath. This syntax applies only 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

