| Fixed-Point Blockset | ![]() |
Summary: Using the Lookup Table Functions
The following summarizes how to use the lookup table approximation functions:
xmin to xmax, over which to find X and Y data
fixpt_look1_func_approx function to generate X and Y data.
fixpt_look1_func_plot function to plot the function and error between the ideal and approximated function using the selected X and Y data, and to calculate the error and the number of points used.
errmax, nptsmax and spacing, to produce sets of X and Y data that generate functions with varying worst-case error, number of points required, and spacing.
| Comparing the Examples | Effect of Spacing on Speed, Error, and Memory Usage | ![]() |