DOE points normal distrbution
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (2개)
David Hill
2021년 1월 4일
m=standard_deviation.*randn(1,1000)+mean;%generates an array of 1000 numbers
댓글 수: 3
David Hill
2021년 1월 5일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Model Compatibility에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!