How to specify Dimension of a Bus Object element?
조회 수: 15 (최근 30일)
이전 댓글 표시
How can I use a MATLAB Variable or Parameter to specify the Dimensions of a Bus Object bus element?
Everything is defined in the same Data Dictionary. When I type the name of my Variable or Parameter for into Dimension field of a bus element, the Bus Editor gives the error message: "Undefined function or variable."
Seems silly that I am reduced to using "magic numbers" to specify the dimensions of certain common bus elements.
Using 2015a. Thanks.
댓글 수: 3
Gergely Bencsik
2021년 10월 20일
I have the same issue, 2020a.
I want to specify the dimension of bus-elements using a parameter that is also parametric in code-generation.
However, I can't specify any parameter in bus editor, only literal 'magic' constants.
답변 (2개)
Varun Bhaskar
2015년 8월 27일
Hi,
This is a known issue and is being looked into by the development team. The workaround is to set the dimensions via the command line and the change should reflect in the bus editor.
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!