How to normalize a signal to zero mean and unit variance?

geeti picture geeti · Jan 3, 2012 · Viewed 107.2k times · Source

I am new to MATLAB and I am trying to built a voice morphing system using MATLAB.

So I would like to know how to normalize a signal to zero mean and unit variance using MATLAB?

Answer

Oli picture Oli · Jan 3, 2012

if your signal is in the matrix X, you make it zero-mean by removing the average:

X=X-mean(X(:));

and unit variance by dividing by the standard deviation:

X=X/std(X(:));