How to make operator for random matrix(matlab command is randn) ? please help me

2 次查看(过去 30 天)
How to make operator for random matrix(matlab command is randn) ? please help me

采纳的回答

Star Strider
Star Strider 2014-5-4
编辑:Star Strider 2014-5-4
If you want to create normally-distributed random variables with a standard deviation of s and a mean of m with randn, this will work:
nrmrnd = @(m,s) m + s*randn;
or if you want a row r by column c matrix of them:
nrmrnd = @(m,s,r,c) m + s*randn(r,c);
  4 个评论
SUMIT
SUMIT 2014-5-4
sir,this is not an operator. In your first comment you give the operator.I need that type of operator. Please help....

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by