title: change dec2bin in matlab to get a logical vector
body: <p>I'm looking for a quick way to get a variat of <code>dec2bin</code> in Matlab such that it'll return a logical variable vector. For example given a number <code>n=8</code> the output will be [1,0,0,0].
  How can I do that?</p>