Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 769
geeti Avatar asked Jan 03 '12 18:01

geeti


People also ask

How do you zero a mean signal?

You can make the signal zero-mean by subtracting different values from each entry. For example, y={1,1,2,2,3,−9} is also a zero-mean signal. I just subtracted the sum of your series from the last element.

How do you normalize a variance?

Normalized measures of spread are calculated by dividing a measure of spread (except the variance because it has squared units) by a measure of location. A useful example of this is the normalized standard deviation.

How do you normalize a signal?

Normalizing the amplitude of a signal is to change the amplitude to meet a particular criterion. One type of normalization is to change the amplitude such that the signal's peak magnitude equals a specified level. Peak amplitude is a measurement based the instantaneous level of a signal.


1 Answers

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(:)); 
like image 59
Oli Avatar answered Sep 27 '22 22:09

Oli