title: How to a convert a vector of labels into a binary vector in Octave?
body: <p>suppose i have A=ones(10,1)*10
  then what does this do eye(10)(A,:) ??</p>
  
  <p>i know eye gives a 10,10 identity matrix but i am not really sure what the above code is doing.
  and what is the equivalent code in Matlab?</p>