Is there a command for/how to convert a binary number to binary vector?
Mostrar comentarios más antiguos
Hi,
I got a binary number and i want to convert it to a binary vector like;
a=101010101010101010 to [1 0 1 0 1 0 1 0 ....]
2 comentarios
Oleg Komarov
el 3 de Ag. de 2012
what class is a?
Use
whos a
Respuesta aceptada
Más respuestas (1)
Azzi Abdelmalek
el 3 de Ag. de 2012
b=num2str(a);c=b(:);
result=str2num(c)'
Categorías
Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!