• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

matlab_randn函数

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

randn 
Normally distributed random numbers and arrays Syntax Y = randn(n) Y = randn(m,n) Y = randn([m n]) Y = randn(m,n,p,...) Y = randn([m n p...]) Y = randn(size(A)) randn 
s = randn(\'state\') Description 
The randn function generates arrays of random numbers whose elements are normally distributed with mean 0, variance σ^2 = 1 , and standard deviation σ = 1. 
Y = randn(n) returns an n-by-n matrix of random entries. An error message appears if n is not a scalar. 

Y = randn(m,n) or Y = randn([m n]) returns an m-by-n matrix of random entries. 

Y = randn(m,n,p,...) or Y = randn([m n p...]) generates random arrays. 

Y = randn(size(A)) returns an array of random entries that is the same size as A. 

randn, by itself, returns a scalar whose value changes each time it\'s referenced. 

s = randn(\'state\') returns a 2-element vector containing the current state of the normal generator. To change the state of the generator: randn(\'state\',s)Resets the state to s. randn(\'state\',0)Resets the generator to its initial state. randn(\'state\',j)For integer j, resets the generator to its jth state. randn(\'state\',sum(100*clock))Resets it to a different state each time.

s = randn(\'state\')返回一个2元素的包含了当前正常generator的行向量,要改变这个gennrator: randn(\'state\',s)重置状态到s,randn(\'state\',0)重置状态到最开始状态,randn(\'state\',j),对于整数j重置到第j个状态,randn(\'state\',sum(100*clock))每次都重置到不同状态.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
重温delphi之:如何将Bitmap位图与base64字符串相互转换发布时间:2022-07-18
下一篇:
在delphi中ocx控件的安装发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap