Generating random numbers

Good morning Guys :-) May I ask for a little help please? I need to generate to random numbers from 1 to 48 and I need step to be 0,5. Is it possible to do it by some already integrated matlab function or I do have to write my own function based on generating numbers from 0 to 1?

 採用された回答

JW
JW 2012 年 1 月 21 日

0 投票

you can use randi( [ 0 96] , N) where N is the amount of numbers you want. Then divide this answer by 2

1 件のコメント

Jan
Jan 2012 年 1 月 21 日
Thank you a lot :-)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeRandom Number Generation についてさらに検索

質問済み:

Jan
2012 年 1 月 21 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by