MATLAB: How can i find centering of matrix

matrix

I have Columns matrix .

Best Answer

Dear Sara, there have been some questions for clarifications. It is not clear, what you want to achieve, because "centering" is no common expression in maths or computer science.
If you want to shift the values of a vector such that the mean value is 0.0, this works for column and row vectors:
xs = x - mean(x);