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 日

回答 (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