title: Convert binary to signed decimal
body: <p>I'd like to convert a binary vector to a signed decimal in matlab using the classic functions.</p>
  
  <p>I have a vector <code>byte = [1 0 0 0 0 0 1 0]</code>,</p>
  
  <p>if I convert it to decimal with <code>byte = bi2de(byte, 'left-msb')</code> I get 130, but if I insert this byte in a calculator I get -126, ergo signed.</p>
  
  <p>I tried <code>byte = typecast(bi2de(byte, 'left-msb'), 'int32')</code>, but failed miserably.</p>
  
  <p>How would I achieve this?</p>