counter odd numbers in 'randi'?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
tomer kapuri
le 2 Déc 2018
Commenté : tomer kapuri
le 3 Déc 2018
counter of odd numbers in 'randi'?
this is program:
a=randi([0 27],1,50);
b=zeros(1,numel(a)*3+numel(a));
b(4:4:end)=a(:)
what is need write after that?
0 commentaires
Réponse acceptée
Plus de réponses (1)
madhan ravi
le 2 Déc 2018
Modifié(e) : madhan ravi
le 2 Déc 2018
a=randi([0 27],1,50);
b=zeros(1,numel(a)*3+numel(a));
b(4:4:end)=a;
b(rem(b,2)~=0 & ~isprime(b))
2 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!