Create a function called UniformAB that allow to generate N as a random integer value between A and B
古いコメントを表示
Create a function called UniformAB that allow to generate N as a random integer value between A and B
2 件のコメント
Daniel Pollard
2020 年 12 月 9 日
https://uk.mathworks.com/help/matlab/ref/randi.html
Adam Danz
2020 年 12 月 9 日
Do you have a question?
回答 (1 件)
Manvi Goel
2020 年 12 月 14 日
function N = UniformAB(a, b)
N = randi([a,b], 1,1);
end
カテゴリ
ヘルプ センター および 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!