How to extract odd numbered elements.
11 次查看(过去 30 天)
显示 更早的评论
Generate a population of 10000 normally distributed elements with mean 2 and dispersion 3. Generate 1000 indexes at random from which only the odd ones are chosen to create a data sample.
Any idea or solution is helpful. My main issue is that I do not know how to extract only the odd numbered elements.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Random Number Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!