integer to binary conversion
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ABDUL
el 17 de Abr. de 2018
Respondida: Walter Roberson
el 17 de Abr. de 2018
how to convert the random integers into binary form for the multidimensional matrix of size m x n x p .
0 comentarios
Respuesta aceptada
Walter Roberson
el 17 de Abr. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!