how to generate samples uisng pseudo random generator
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Thirunavukkarasu
le 27 Août 2014
Commenté : Star Strider
le 30 Août 2014
how to generate xor samples using pseudo random number generator
2 commentaires
dpb
le 27 Août 2014
doc rand % and friends for the RNGs in Matlab
what, and how, xor comes into play is totally unclear from what little was provided.
Réponse acceptée
Star Strider
le 27 Août 2014
I am not certain that I understand what you want to do, but I will make an attempt at answering:
nrows = 5;
s = logical(randi(2, nrows, 2)-1);
out = xor(s(:,1),s(:,2));
4 commentaires
Star Strider
le 30 Août 2014
That is exactly what ‘rn’ does. (The original continuous vector is ‘rv’.)
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Big Data Processing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!