values
Description
that contains the variable configurations for the variable table,
vc
= values(variableTable
)variableTable
.
Examples
Return Variable Configurations for Variable Table
Create a variable table and save it as a workspace variable by entering:
table1 = simscape.instrumentation.VariableTable
table1 = VariableTable with unset variable(s)
Suppose you have a Simscape block with the variables
C.w
andR.w
. Add the variables totable1
by entering:table1 = insert(table1,"C.w",simscape.instrumentation.VariableConfiguration); table1 = insert(table1,"R.w",simscape.instrumentation.VariableConfiguration)
table1 = VariableTable (string ⟼ VariableConfiguration) with 2 variable(s): Name Unit Logging _________ ____ _______ C.w ⟼ <missing> "" false R.w ⟼ <missing> "" false
Provide names for the
VariableConfiguration
objects.table1("C.w").Name = "Port C Speed"; table1("R.w").Name = "Port R Speed";
Return the
VariableConfiguration
array.vc = values(table1)
vc = 2×1 VariableConfiguration array with properties: Name Unit Logging
Return the information for a single
VariableConfiguration
object in the array.vc(2,1)
ans = VariableConfiguration with properties: Name: "Port R Speed" Unit: "" Logging: off
Input Arguments
variableTable
— Variable table object
simscape.instrumentation.VariableTable
object
Variable table, specified as a
simscape.instrumentation.VariableTable
object.
Output Arguments
vc
— Variable configuration
array of simscape.instrumentation.VariableConfiguration
objects
Variable configuration, returned as an array of
simscape.instrumentation.VariableConfiguration
objects.
Version History
Introduced in R2024a
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 (한국어)