MinMax does not accept 'boolean' signals
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Stephen23
am 13 Dez. 2017
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?
Akzeptierte Antwort
Birdman
am 13 Dez. 2017
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 Kommentare
Birdman
am 14 Dez. 2017
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!