I have a matrix and a row vector produced by the std function:
X = [1 2 3; 4 5 6];
sigma = std(X);
Now I would like a vectorized solution that updates each value in X by dividing the value with the correct value in sigma. It would look something like this:
X(1,1)/sigma(1)
X(1,2)/sigma(2)
X(1,3)/sigma(3)
X(2,1)/sigma(1)
X(2,2)/sigma(2)
X(2,3)/sigma(3)