How to specify Dimension of a Bus Object element?
Mostrar comentarios más antiguos
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 comentarios
Andreas Reul
el 7 de Mzo. de 2019
When you want to use the Parameter Length, you have to set the Dimension to 'Length' --> 2018b
Daniel
el 30 de Abr. de 2020
Is this still a known bug? I seem to be having the same issue in 2019b.
Gergely Bencsik
el 20 de Oct. de 2021
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.
Respuestas (2)
Varun Bhaskar
el 27 de Ag. de 2015
0 votos
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.
1 comentario
Jerry Girard
el 27 de Ag. de 2015
Rusczak
el 22 de Feb. de 2017
0 votos
I still have this issue in 2016b, is there any plan to fix it ?
Categorías
Más información sobre Workspace Variables and MAT Files en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!