Effacer les filtres
Effacer les filtres

When did Simulink.B​us.objectT​oCell change?

1 vue (au cours des 30 derniers jours)
Martin
Martin le 6 Juil 2016
Réponse apportée : Martin le 14 Juil 2016
I have a script that parses a Simulink Bus Signal. I use Simulink.Bus.objectToCell to get the information about the single signals in the bus. Unfortunately, somewhere between R2007b and R2012b, the returned cell array did change. In R2007b, the single elements were at cell index 4, while in R2012b, the cell elements have two new fields "data scope" and "alignment", and the single elements are at cell index 6. As my script must work with any Matlab version from 2007b on, does anybody know at which version exactly the change was introduced? I do not have the versions between R2007b and R2012b, and I could not find any information about this in the official release notes.

Réponse acceptée

Martin
Martin le 14 Juil 2016
I found someone which the relevant Matlab versions installed. So here is the answer:
- Until R2010b, the cells had 4 fields: Name, header file, description, bus elements.
- In R2011a, the cells had 5 fields: Name, header file, description, data scope, bus elements.
- From R2011b until today (R2016a), the cells have 6 fields: Name, header file, description, data scope, alignment, bus elements.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by