how can i make int24 data type conversions??
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
시영
le 5 Déc 2023
Réponse apportée : Walter Roberson
le 5 Déc 2023
i wanna make int 24 block by data type conversion but i can't type int24 in this block.
so i tried like this. and it will be work? or is there any way to make int24 block??
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1561044/image.png)
0 commentaires
Réponse acceptée
Walter Roberson
le 5 Déc 2023
No, simulink cannot handle an int24 datatype.
The closest it could handle would be a Fixed-Point datatype see fi
You could, of course, construct an int32 datatype in which you only used 24 bits of it. If you made it the first (high-order) 24 bits you would get positive / negative handling automatically; if you made it the last 24 bits (leading 0's) then you would need to handle negatives yourself.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur String dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!