matlab - int array to binary array
Posted
by asel
on Stack Overflow
See other posts from Stack Overflow
or by asel
Published on 2010-04-22T01:26:55Z
Indexed on
2010/04/22
1:33 UTC
Read the original article
Hit count: 324
matlab
hi, currently in matlab i have int array a=[3,4,5,6,7]; i want to convert it to binary array with four bits each.
for the above int array i would get the following binary array abinary=[0,0,1,1, 0,1,0,0, 0,1,0,1, 0,1,1,0, 0,1,1,1];
is there any fast way to do it? thanks a lot!
© Stack Overflow or respective owner