Dimensions issue with simulink nested bus as input to matlab system

2 次查看(过去 30 天)
I use a matlab system in simulink to check certain values of a simulink nested bus and create an output, that shows the 10 first values of the nested bus, that are higher than 20. The simulink model is used vor code generation.
The matlab system has one input called nestedBus and one output called test.
The nestedBus datatype is defined in a data dictionary. The nestedBus is stored in a data store memory block.
Now, simulink has an issue with the input dimensions to my matlab system.
It shows:
Simulink detected an error
'Dimension 2 is fixed on the left-hand side but varies on the right ([1 x 10] ~= [1 x :?]).'.
From my understanding, simulink has a problem with the input dimension of the nestedBus.
The [1x10] beinig the dimensions of test and [1x:?] being the dimensions of the nestedBus.
But as far as i understand, the Dimensions of the nestedBus need to be fixed anyway.
Otherwise i would not be able to store it in the data store memory block in the first place.
How can i loose my dimensions from reading the data store to the input of the matlab system?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Event Functions 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by