How can I specify symbolic dimensions for an element in my bus?

2 views (last 30 days)
I am trying to use a variable to set the dimensions of an element in bus. I am using the Bus Editor to do this using the variable "myvar":
But I get an error saying "Unrecognized function or variable". What am I doing wrong?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 5 May 2021
You can do this in the Bus Editor, but you need to put single quotes around the variable name as follows:
You can also do this from the command line:
>> BusObject.Elements(1).Dimensions = 'myvar';

More Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!