integer to binary conversion
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
ABDUL
le 17 Avr 2018
Réponse apportée : Walter Roberson
le 17 Avr 2018
how to convert the random integers into binary form for the multidimensional matrix of size m x n x p .
0 commentaires
Réponse acceptée
Walter Roberson
le 17 Avr 2018
cast() to the smallest integer type guaranteed to be able to represent the signed value range you need. typecast to the unsigned integer of the same size. dec2bin to get binary coded as characters. Subtract '0' to get binary numeric.
Instead of dec2bin and subtract, you might be able use de2bi
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!