Dimensions issue with simulink nested bus as input to matlab system
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
1 Kommentar
Antworten (0)
Siehe auch
Kategorien
Mehr zu Event Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!