I have 606,774(1 row means event no.1) event number in 8 column(these are 32 bit values), these numbers are in decimal as shown in below. a=(strVals(1:10,1:8))
a =
0 0 0 0 0 3 0 0 0 0 0 0 0 576 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 48 0 0 1536 8192 0 0 0 0 0 0 0 0 0 0 50331648 0 0 0 0 0 0 6291456 0 0 0 0 0 67108864 0 0 256 0 0 0 0 768 0 0 0 0 0 0 0 4194304 0 0 0 0This is only for 1:10 event,(I have 606,774 event no.). What I want here is, how to convert these number into binary at same time and how can I check 1:32 bit at once. I have use "bitget" function but I only able to get separately, may I need 'for loop' to get at once?1:32 bit means 1 through 32 bit of binary number(convert above decimal numbers into binary), so I need to know how to write a "for loop" to check each bit one at a time. Like >> bitget(a,1) command checks if the first (smallest/lowest) bit is set for all these numbers at the same time.Please help me, thanks in advance.
Best Answer