Effacer les filtres
Effacer les filtres

Dimensions issue with simulink nested bus as input to matlab system

2 vues (au cours des 30 derniers jours)
Lukas
Lukas le 30 Août 2023
Commenté : Ramtej le 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?
  1 commentaire
Ramtej
Ramtej le 4 Sep 2023
Hi Lukas,
Could you please share the MATLAB system class definition file?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by