DOE points normal distrbution
Show older comments
Dear sir
if i have the mean and standarded deviation and I need to generate a number of points folowing the gaussien normal distrbution how can i do that please.
Answers (2)
David Hill
on 4 Jan 2021
m=standard_deviation.*randn(1,1000)+mean;%generates an array of 1000 numbers
3 Comments
Hazim Hamad
on 5 Jan 2021
David Hill
on 5 Jan 2021
Not sure I understand you completely.
x= [.1,.2,.3,.4,.2,.4,.5,.6];%is there a reason why you can't make x just a row vector?
sd=.1*x;
n=sd.*randn(20,length(x))+x;%generates 20 numbers in each column corresponding to requested standard deviation and mean
Hazim Hamad
on 6 Jan 2021
Hazim Hamad
on 26 Mar 2021
0 votes
Categories
Find more on Noncentral t Distribution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!