vendredi 27 novembre 2020

Function in MATLAB to draw samples from Uniform Distribution

I want to draw randomly from a Uniform Distribution defined as below by code in MATLAB :-

pd1 = makedist('Uniform','lower',-0.0319,'upper',0.0319); % X1

In MATLAB the usual command is random() but the help file tells me its only for Guassian mixture distributions. So can it also be extended for use in Uniform Distribution or is there any other function to explicitly draw randomly for Monte Carlo Simulations.




Aucun commentaire:

Enregistrer un commentaire