How I can Convert Decimal number into binary number then to matrix binary number ?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Abduellah Elbakoush
el 21 de Dic. de 2021
Comentada: Stephen23
el 21 de Dic. de 2021
e,g I have 128125
i want convert to 01 1111 0100 0111 1000
then convert to 01
11
11
01
00
01
11
10
00
1 comentario
Respuesta aceptada
John D'Errico
el 21 de Dic. de 2021
Easy peasey.
B = dec2bin(123125)
B = [repmat('0',rem(length(B),2)),B]
reshape(B,2,[])'
2 comentarios
Walter Roberson
el 21 de Dic. de 2021
B = dec2bin(123125)
B = [repmat('0',rem(length(B),2)),B]
reshape(B,2,[])' - '0'
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Type Conversion 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!