If I have a vector a, which is not follow normal distribution. How do I transform them into normal distribution in MATLAB?
which means I create a new vector b that follow the normal distribution and have the information of a.
If I have a vector a, which is not follow normal distribution. How do I transform them into normal distribution in MATLAB?
which means I create a new vector b that follow the normal distribution and have the information of a.
I hope I get you right:
assume you have a vector a, and you would like to get a normal distribution that represents it.
[correct me if I am wrong]
>>a = randn(2); //your vector
>>x=[-10:0.1:10];
>> y = gaussmf(x,[std(a) mean(a)]); //std(a)=sigma,mean(a)=mu
>> plot(x,y);