Lookup Tables
Bloques de tablas de búsqueda, como Cosine y Sine
Utilice bloques de la biblioteca Lookup Tables para modelar la no linealidad. Los bloques de tablas de búsqueda utilizan arreglos de datos para asignar valores de entrada a valores de salida, aproximándose a las funciones matemáticas. Para aproximar una función en N variables, utilice el bloque n-D Lookup Table:
Para gestionar las tablas de búsqueda en su entorno, puede usar el editor Lookup Table. Consulte Cómo utilizar el editor Lookup Table (5 min 9 s).
Bloques
1-D Lookup Table | Approximate one-dimensional function |
2-D Lookup Table | Approximate two-dimensional function |
Direct Lookup Table (n-D) | Index into n-dimensional table to retrieve element, vector, or 2-D matrix |
Interpolation Using Prelookup | Use precalculated index and fraction values to accelerate approximation of N-dimensional function |
Lookup Table Dynamic | Approximate a one-dimensional function using dynamic table |
Prelookup | Compute index and fraction for Interpolation Using Prelookup block |
Sine | Implement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry |
n-D Lookup Table | Approximate n-dimensional function |
Funciones
lookupTableEditor | Iniciar el editor Lookup Table (desde R2022a) |
Temas
Acerca de Lookup Tables
- Acerca de los bloques Lookup Table
Un bloque Lookup Table utiliza un arreglo de datos para asignar valores de entrada a valores de salida, aproximándose a una función matemática. - Anatomy of a Lookup Table
Breakpoint and table data are components of a lookup table. - Breakpoint and Table Size Features in Lookup Tables
Simulink® lookup tables have multiple breakpoint and table size features. - Guidelines for Choosing a Lookup Table
Select the best lookup table for your application. - Prelookup and Interpolation Blocks
Use Prelookup and Interpolation Using Prelookup blocks together. - Characteristics of Lookup Table Data
Comply with lookup table data requirements and represent discontinuous data. - Methods for Approximating Function Values
Set the method by which lookup table blocks approximate function values.
Trabajar con Lookup Tables
- Use the Lookup Table Editor
Use the Lookup Table Editor to manage the lookup tables in your environment. - Edit Lookup Table Data with Lookup Table Spreadsheet
Work with lookup table objects with a lookup table spreadsheet. - Enter Breakpoints and Table Data
Specify breakpoint vectors and table data for lookup table blocks. - Visualize Data Through Plots
Use the Lookup Table Editor plots to visualize data in the spreadsheet. - Copy and Paste Lookup Table Data from Excel
Import data into a lookup table using copy and paste. - Generate Report of Lookup Table
Generate a report of one or more lookup tables in a model. - Import Lookup Table Data from MATLAB
You can import table and breakpoint data from variables in the MATLAB workspace by referencing them in the Table and Breakpoints tab of the dialog box. - Import Lookup Table Data from Excel Using readtable
Import data into a lookup table with thereadtable
function. - Visualize Lookup Tables Visualized Through Lookup Table Control
Work with custom lookup tables from the Lookup Table Control. - Register Custom Lookup Table Blocks
You can use the Lookup Table Editor to register custom lookup table blocks that you have created. - Create a Logarithm Lookup Table
Work with lookup table blocks. - Optimize Generated Code for Lookup Table Blocks
Optimize generated code for lookup table blocks. - Row-Major Algorithm in Existing Models Containing Lookup Table Blocks
Update existing models to use row-major layout.
Actualizar Lookup Tables a partir de la versión anterior
- Update Lookup Table Blocks to New Versions
Update existing models to use current versions of lookup table blocks.