Al momento, stai seguendo questa domanda
- Vedrai gli aggiornamenti nel tuofeed del contenuto seguito.
- Potresti ricevere delle e-mail a seconda delle tuepreferenze per le comunicazioni.
How to change the rng value
1 Commento
Risposta accettata
28 Commenti
I would like to check with you the following code
list_of_rng_seeds = [12, 2, 1]; num_rng = length(list_of_rng_seeds); for rng_usage_idx = 1 : num_rng this_seed = list_of_rng_seeds(rng_usage_idx); fprintf('Below results are for rng = %d\n', this_seed); rng(this_seed); unused_rows = 1:6; while ~isempty(unused_rows) N_UE_rows = 2; rows=unused_rows(randsample(length(unused_rows),N_UE_rows)) [~,idx]=find(ismember(unused_rows,rows)) unused_rows(idx)=[] end end
In the code the number of rows for each rng is getting fixed, say for example for rng=1 ,(34) and (12) form groups. I would like to check how to have variable numbers such that (3),(2),and (14) for rng.
Più risposte (0)
Vedere anche
Categorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Si è verificato un errore
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia-Pacifico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)