Filter löschen
Filter löschen

Dimensions issue with simulink nested bus as input to matlab system

2 Ansichten (letzte 30 Tage)
Lukas
Lukas am 30 Aug. 2023
Kommentiert: Ramtej am 4 Sep. 2023
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?

Antworten (0)

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by