Sampling data

2 次查看(过去 30 天)
Marcel
Marcel 2012-3-12
Hi,
How to select every 10th element from a vector?
Thanks.

采纳的回答

Andrei Bobrov
Andrei Bobrov 2012-3-12
eg
x = randi(1000,100,1);
out = x(10:10:end)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by