MinMax does not accept 'boolean' signals

7 ビュー (過去 30 日間)
MC
MC 2017 年 12 月 13 日
コメント済み: Birdman 2017 年 12 月 14 日
As the title say, I get this error. Can this be solved somehow or do I need to re-do the model in some other way? This error occurs when trying to do code-generation using the corresponding Simulink version that comes with Matlab 2011b 32-bit.
  2 件のコメント
Birdman
Birdman 2017 年 12 月 13 日
What do you want to do in that part of your model?
Stephen23
Stephen23 2017 年 12 月 13 日
MC's "Answer" moved here:
This is a model I inherited. Essentially that part does: min(BooleanSignal_k, BooleanSignal_(k-1)), that is it outputs the minimum of a Boolean Signal at current time step versus the previous time step. I have re-modeled it, but was curious why the MinMax block doesn't take a boolean even though the support page says that it indeed does take a boolean. Perhaps a syndrom of something else being wrong in the model?

サインインしてコメントする。

採用された回答

Birdman
Birdman 2017 年 12 月 13 日
I created a model for you where you can compare boolean datas inside a MATLAB Function very easily. Try to adapt that idea to your model. Note that MinMax block does not accept boolean data at any circumstances.
  2 件のコメント
MC
MC 2017 年 12 月 14 日
Thank you, I'll check it out! Here it says that MinMax does indeed accept boolean, perhaps I misinterpret it.
https://se.mathworks.com/help/simulink/slref/minmax.html
Birdman
Birdman 2017 年 12 月 14 日
Good ! If my answer helped, can you accept it so that other people having the same problem will know that there is a working solution.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDirection of Arrival Estimation についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by