Functionality Simulink Add-block

16 views (last 30 days)
Tjitze
Tjitze on 8 Dec 2025 at 16:53
Commented: Tjitze on 10 Dec 2025 at 20:46

Accepted Answer

Walter Roberson
Walter Roberson on 8 Dec 2025 at 18:48
Use convert blocks on the logical values to convert them to one of the int datatypes or to single or double precision.
  2 Comments
Paul
Paul on 8 Dec 2025 at 22:46
Or change the Output Data Type parameter in the Logial Operator blocks to an expression of the desired type, e.g., 'double' (note single quotes).
Tjitze
Tjitze on 10 Dec 2025 at 20:46
Dear Walter,
Thank you for reply, it works!
Tjitze

Sign in to comment.

More Answers (0)

Tags

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!