DOE points normal distrbution

1 visualizzazione (ultimi 30 giorni)
Hazim Hamad
Hazim Hamad il 4 Gen 2021
Risposto: Hazim Hamad il 26 Mar 2021
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.

Risposte (2)

David Hill
David Hill il 4 Gen 2021
m=standard_deviation.*randn(1,1000)+mean;%generates an array of 1000 numbers
  3 Commenti
David Hill
David Hill il 5 Gen 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
Hazim Hamad il 6 Gen 2021
Many Thank this is because x is a matrix of design points and each row represents a case so your solution is correct for just one row would you help make it valid for two rows please.
x= [ 0.1 0.2 0.3 0.4
0.2 0.4 0.5 0.6 ] ;
ist row is 0.1 0.2 0.3 0.4
2nd row is 0.2 0.4 0.5 0.6
regards

Accedi per commentare.


Hazim Hamad
Hazim Hamad il 26 Mar 2021
Hi
for the random normal distrbution can you help me to use seed to obtain the same result at each trail.
Regards
Hazzim

Prodotti


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by