Info

此问题已关闭。 请重新打开它进行编辑或回答。

how to remove odds from a dataset

1 次查看(过去 30 天)
andrew
andrew 2014-1-14
关闭: Azzi Abdelmalek 2014-1-14
have a dataset that contains a1,a2,a3,a4,a5,b1,b2,b3,b4,b5..etc how do I delete the odds so it can only have a2, a4, b2, b4 etc...

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2014-1-14
v=[1 2 3 4 5 6 7 8]
out=v(2:2:end)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by