How to get a data set using Mean and standard deviation
14 次查看(过去 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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!