[Matlab]Desperate help with a simple code.

1 次查看(过去 30 天)
How Can I generate 1,000,000 random integers with range of [5 -----> 18] in a square matrix using the randi fucntion? Thank you.

采纳的回答

Roger Stafford
Roger Stafford 2014-10-20
编辑:Roger Stafford 2014-10-20
M = randi([5,18],1000);
  1 个评论
Hadi
Hadi 2014-10-20
Thank you so much. Can I ask you one more question? How about finding the probability of a certain number and a range of certain numbers at M?

请先登录,再进行评论。

更多回答(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