How to get a data set using Mean and standard deviation
조회 수: 9 (최근 30일)
이전 댓글 표시
I want to get data set containing 10 points with mean =63 and standard deviation of 2.3. Is there a way to do this in MATLAB
댓글 수: 0
채택된 답변
Dyuman Joshi
2022년 6월 22일
mu=63;
sigma=2.3;
%generate normally distributed numbers
y=randn(1,10);
y=sigma*(y-mean(y))/std(y)+mu
mean(y)
std(y)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!