I have this so far:
data = 14 out = dec2bin(data, 4)
which gives:
out = 1110
But I want to get binary num
Yet another way: Use "bitget":
data = 14 out = bitget (data, 4:-1:1) out = 1 1 1 0