how can i create 12 monthly maxima from a uniform distribution between 0 and 6? (using unifrnd)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
EM geo
el 4 de Jul. de 2018
Respondida: Andrei Bobrov
el 4 de Jul. de 2018
I've tried use the function unifrnd to create for each of 12 months, a random value from 0 to six but something goes wrong. I've used this code:
>> a = 0; b = 1:6; >> R = unifrnd(a,b,[1,12])
0 comentarios
Respuesta aceptada
Andrei Bobrov
el 4 de Jul. de 2018
R = unifrnd(a,b(end),[1,12]);
or
R = rand(1,12)*b(end);
0 comentarios
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!