scale() R function equivalent in Octave/Matlab
<p>Avoiding loops, is there a way to center a matrix of data around the mean of the columns (or rows), scaling each entry by the standard deviation (also column-wise or row-wise)?</p>

<p>In R this is easy: <code>scale(data, center = T, scale = T))</code>.</p>

<p>But I don't know how to achieve the same basic pre-processing in Ocatave or Matlab.</p>