How can I specify symbolic dimensions for an element in my bus?
2 views (last 30 days)
Show older comments
MathWorks Support Team
on 22 Feb 2021
Answered: MathWorks Support Team
on 4 Mar 2021
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
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';
0 Comments
More Answers (0)
See Also
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!