Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Martin
Martin am 6 Jul. 2016
Beantwortet: Martin am 14 Jul. 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.

Akzeptierte Antwort

Martin
Martin am 14 Jul. 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.

Weitere Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by