how to generate different sequence everytime using randsrc

2 ビュー (過去 30 日間)
Lynn Pang
Lynn Pang 2019 年 3 月 30 日
コメント済み: Lynn Pang 2019 年 4 月 5 日
i tried to created a 48X1 array of randomized M and Z and need to run it for 4 times (each generate a different randomised M and Z sequence )
i have used :
a = randsrc(1,48, [77 90 ; 0.45 0.55],48)
b=char(a)
but all of the sequence i have got are the same. i dont know wheere i went wrong . can anyone shed some light on this .
thanks .

採用された回答

Amal George M
Amal George M 2019 年 4 月 2 日
This is expected since the function is seeded with a value.
randsrc(m,n,___,seed)
If you remove the seed, the function will assume a random seed each time it is run.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCommunications Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by