Simulink.dialog.LookupTableControl Class
Namespace: Simulink.dialog
Description
Create an instance of Simulink.dialog.LookupTableControl
to add values
for table and breakpoints data in the lookup table control.
Properties
Name
— Unique name
empty
Specifies unique name for the LUT control.
Data Types: String
Prompt
— Display text
empty
Specifies the text displayed on the lookup table control.
Data Types: String
Row
— Placement of the LUT control
new
Specifies whether dialog control is placed on the current row or on a new row.
Data Types: Character vector
Enabled
— Is LUT control active
on
Indicates whether lookup table control is active on the mask dialog box.
Data Types: Logical
Visible
— Visibility of LUT control on mask dialog
on
Indicates whether lookup table control is displayed on the mask dialog box.
Data Types: Logical
HorizontalStretch
— Resizing of LUT control along the dialog
on
Indicates if lookup table control gets resized along with the dialog.
Data Types: Logical
Tooltip
— Tooltip text
empty
Tool tip text for the lookup table control.
Data Types: String
Table
— Table data class
empty
A class that holds the properties of table data.
Data Types: String
Breakpoints
— Breakpoint data set class
empty
A class that holds the properties of an array of breakpoint data.
Data Types: String
LookupTableObject
— Name of the object holding data
empty
Specifies the name of the Simulink.LookupTable
object in the base
workspace or model workspace that holds the table and breakpoint data.
Data Types: String
DataSpecification
— Value array or table object
empty
Indicates if the table and breakpoints data is specified explicitly or through a lookup table object.
Data Types: String
Examples
Add Table and Breakpoint Data
new_system('LUTexample'); add_block('built-in/subsystem','LUTexample/subsystem'); save_system; open_system('LUTexample'); maskObj = Simulink.Mask.create(gcb); bp1 = maskObj.addParameter('Name', 'torque', 'Prompt', 'Torque:', 'Type', 'edit'); bp2 = maskObj.addParameter('Name', 'speed', 'Prompt', 'Engine speed:', 'Type', 'edit'); table = maskObj.addParameter('Name', 'fuelflowtable', 'Prompt', 'Fuel Flow Map:', 'Type', 'edit'); lutControl = maskObj.addDialogControl('Name', 'fuelflowlut', 'Type', 'lookuptablecontrol'); lutControl.Table.Name = 'fuelflowtable'; lutControl.Table.Unit = 'kg/s'; lutControl.Breakpoints(1).Name = 'torque'; lutControl.Breakpoints(1).Unit ='Nm'; lutControl.Breakpoints(1).FieldName = 'Torque'; lutControl.Breakpoints(2).Name = 'speed'; lutControl.Breakpoints(2).FieldName = 'Speed'; save_system;
Version History
Introduced in R2021b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)