my question is that
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Azzi Abdelmalek
2012-12-27
编辑:Azzi Abdelmalek
2012-12-27
nm=[400,400]
v=0.5; %variance
m=2; % mean
out=m+sqrt(v)*randn(nm)
5 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Random Number Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!