Does inverse block in Simulink support fixed point data type?

8 ビュー (過去 30 日間)
Shraddha  Bakade
Shraddha Bakade 2015 年 6 月 26 日
編集済み: Debarati Banerjee 2015 年 7 月 7 日
I am solving equations in simulink, where in it is required to find inverse of a matrix. The following error is flashed: The product block 'final/Product1' is in matrix operations mode, but the block has data type combinations that are not supported in this mode. When matrix inverse is required, the input and output data types must all be double or must all be single. Can anybody guide on this? Thank you in advance.

回答 (1 件)

Debarati Banerjee
Debarati Banerjee 2015 年 7 月 7 日
編集済み: Debarati Banerjee 2015 年 7 月 7 日
The Product block does not support matrix inversion for fixed-point data types. Hence it errors out.
This link also mentions the same point.
As a workaround you may use a ' Data Type Conversion ' block between your fixed point input and the Product block. The Data Type Conversion block can convert the input into double/ single before it is applied to the Product block.
Hope this helps!
Debarati

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by