MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by subha
on 21 Nov 2013

How to make dataset into zero mean and 1 variance

*No products are associated with this question.*

Answer by Roger Stafford
on 21 Nov 2013

Accepted answer

That's easy. Subtract the dataset's mean value from each element. Then divide each element by the dataset's standard deviation. My question to you is, why would you want to do such a thing?

Answer by Andrei Bobrov
on 21 Nov 2013

Normally distributed:

out = randn(1000,1);

subha
on 21 Nov 2013

This will generate some random numbers with zero mean and 1 variance.But,i want to get input from a dataset which has zero mean and 1 variance.So for that i want to make my dataset to that condition

## 0 Comments