在这里搜集我常用的Matlab functions. 大部分的说明在Matlab 官网都有。这里整理摘抄我最常用的一些function feature,以便之后调用:
1. generate uniform random variable
如果有 Statistics and Machine Learning Toolbox, 可以用 unifrnd 来产生 continuous uniform random variable, 用 unidrnd 来产生 discrete uniform random variable. 以下是它们的常用用法:
https://www.mathworks.com/help/stats/unifrnd.html
1)生成 continuous random variable
r=unifrnd(a,b)
It generates r as a uniform random variable in the range [ a , b ] [a,b] [a,b].
2) 生成 continuous random vector
r=uni