Akzeptierte Antwort

Walter Roberson
Walter Roberson am 8 Dez. 2025

0 Stimmen

Use convert blocks on the logical values to convert them to one of the int datatypes or to single or double precision.

2 Kommentare

Paul
Paul am 8 Dez. 2025
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 am 10 Dez. 2025
Dear Walter,
Thank you for reply, it works!
Tjitze

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Version

R2015b

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by