random grouping of users and subcarriers
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Prabha Kumaresan
el 19 de Dic. de 2017
Comentada: Prabha Kumaresan
el 19 de Dic. de 2017
Please anyone help me to execute the following code. clear all; clc;
N_UE=[2 4 6 8 10]; N_SC=[20 30 40 50 60];
t= 1:length(N_UE) r = 1:length(N_SC)
s= randperm(length(N_UE)) p= randperm(length(N_SC))
G = rand(s,p)
4 comentarios
Respuesta aceptada
Birdman
el 19 de Dic. de 2017
Change this line
G = rand(s,p)
to this
G=[randsample(N_SC(r),1) randsample(N_UE(p),1)]
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!