当前位置:网站首页>matlab randint,Matlab的randint函数用法「建议收藏」
matlab randint,Matlab的randint函数用法「建议收藏」
2022-07-25 15:23:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
RANDINT Generate matrix of uniformly distributed random integers.
OUT = RANDINT generates a “0” or “1” with equal probability.
OUT = RANDINT(M) generates an M-by-M matrix of random binary numbers.
“0” and “1” occur with equal probability.
OUT = RANDINT(M,N) generates an M-by-N matrix of random binary numbers.
“0” and “1” occur with equal probability.
OUT = RANDINT(M,N,IRANGE) generates an M-by-N matrix of random integers.
IRANGE can be either a scalar or a two-element vector:
Scalar : If IRANGE is a positive integer, then the output integer
range is [0, IRANGE-1]. If IRANGE is a negative integer,
then the output integer range is [IRANGE+1, 0].
Vector : If IRANGE is a two-element vector, then the output
integer range is [IRANGE(1), IRANGE(2)].
OUT = RANDINT(M,N,IRANGE,STATE) causes RAND to use the generator
determined by the ‘state’ method, and initializes the state of that
generator using the value of STATE.
Examples:
out = randint(2,3) out = randint(2,3,4)
out = out =
0 0 1 1 0 3
1 0 1 2 3 1
out = randint(2,3,-4) out = randint(2,3,[-2 2])
out = out =
-3 -1 -2 -1 0 -2
-2 0 0 1 2 1
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/127601.html原文链接:https://javaforall.cn
边栏推荐
- How much memory can a program use at most?
- PageHelper does not take effect, and SQL does not automatically add limit
- Node learning
- Spark AQE
- matlab 如何保存所有运行后的数据
- ML - 语音 - 语音处理介绍
- Endnote 无法编辑range 解决
- MySQL heap table_ MySQL memory table heap Usage Summary - Ninth Five Year Plan small pang
- Outline and box shadow to achieve the highlight effect of contour fillet
- Object.prototype. Hasownproperty() and in
猜你喜欢

《图书馆管理系统——“借书还书”模块》项目研发阶段性总结

How to solve the login problem after the 30 day experience period of visual stuido2019

Spark 内存管理机制 新版

小波变换--dwt2 与wavedec2

4PAM在高斯信道与瑞利信道下的基带仿真系统实验

Run redis on docker to start in the form of configuration file, and the connection client reports an error: server closed the connection

Spark AQE

延迟加载源码剖析:

ML - 语音 - 高级语音模型

从 join on 和 where 执行顺序认识T-sql查询执行顺序
随机推荐
Spark DF adds a column
数据系统分区设计 - 分区再平衡(rebalancing)
PageHelper does not take effect, and SQL does not automatically add limit
CGO is realy Cool!
Iframe nested other website page full screen settings
Single or multiple human posture estimation using openpose
Endnote 无法编辑range 解决
Redis elimination strategy list
请问seata中mysql参数每个客户端连接最大的错误允许数量要怎么理解呢?
Remember that spark foreachpartition once led to oom
Es5 thinking of writing inheritance
Image cropper example
Args parameter parsing
ML - natural language processing - Basics
Spark DF增加一列
MySQL transactions and mvcc
C#精挑整理知识要点9 集合2(建议收藏)
解决DBeaver SQL Client 连接phoenix查询超时
分布式 | 实战:将业务从 MyCAT 平滑迁移到 dble
如何更新更新数据库中的json值?