Réponse acceptée

Walter Roberson
Walter Roberson le 8 Déc 2025

0 votes

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

2 commentaires

Paul
Paul le 8 Déc 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 le 10 Déc 2025
Dear Walter,
Thank you for reply, it works!
Tjitze

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Version

R2015b

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by