my question is that
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
a=randn(400); generates 400*400 matrix in matlab,
my question is that this function generates different mean and variance matrix at every time when i run the code. so i require fix mean and variance matrix at every time when i run the code. (not a nearest,every time exact and fixed value)
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 27 de Dic. de 2012
Editada: Azzi Abdelmalek
el 27 de Dic. de 2012
nm=[400,400]
v=0.5; %variance
m=2; % mean
out=m+sqrt(v)*randn(nm)
5 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices 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!