counter odd numbers in 'randi'?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
更多回答(1 个)
madhan ravi
2018-12-2
编辑:madhan ravi
2018-12-2
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))
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!