How to get a data set using Mean and standard deviation
27 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kushagra Kirtiman
el 22 de Jun. de 2022
Respondida: Dyuman Joshi
el 22 de Jun. de 2022
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 comentarios
Respuesta aceptada
Dyuman Joshi
el 22 de Jun. de 2022
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Descriptive Statistics and Visualization en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!