By what I can replace randint() function.
1 次查看(过去 30 天)
显示 更早的评论
Here is a randint function, i am not having communication toolbox. How i can rewrite this statement. k = randint(1,1,10)+5;
0 个评论
采纳的回答
更多回答(1 个)
Steven Lord
2018-9-20
randi([5, 14], [1 1])
since randint(1, 1, 10) created a number in the range [0, 9].
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!