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

2 ビュー (過去 30 日間)
Martin
Martin 2016 年 7 月 6 日
回答済み: Martin 2016 年 7 月 14 日
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.

採用された回答

Martin
Martin 2016 年 7 月 14 日
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.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by