Display or control behavior of variant condition legend
modelName — Model for which variant legend is displayed
character vector | string
Model for which the variant legend is displayed, specified as a character vector or a string.
action — Task to be performed on variant legend
Task to be performed on the variant condition legend for the model, specified as:
'open'— Display the variant condition legend for a model. The model must be open. If the legend is opened for the first time, the model is updated.
'print'— Print the data in the variant condition legend. The legend must be open. There is no preview before printing the legend.
'close'— Close the variant condition legend belonging to the specified model.
codeConditionVisibility — Display or hide code generation condition column
Display or hide code generation condition column in the Variant Conditions
Legend dialog box, specified as
off. This column shows the variant condition in the
generated code. The legend must be open for this setting to work.
Open Variant Legend
model = 'slexVariantSubsystems'; open_system(model);
Display the variant condition legend for the model.
Display the code generation conditions column in the variant condition legend.
Version HistoryIntroduced in R2023b
R2023b: Method moved to
variantLegend method has been moved from the
Simulink.VariantManager class to the