random numbers in between two ranges
3 ビュー (過去 30 日間)
古いコメントを表示
hi
i want one random number generated between two ranges Like 20 and 50. i there any command who can do this. kindly help me
regards
0 件のコメント
採用された回答
Azzi Abdelmalek
2015 年 6 月 13 日
編集済み: Azzi Abdelmalek
2015 年 6 月 13 日
a=20
b=50
n=1000
v=a+(b-a)*rand(1,n)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Random Number Generation についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!