how to remove the first and second element from cell?

1 回表示 (過去 30 日間)
skysky2000
skysky2000 2017 年 7 月 4 日
コメント済み: skysky2000 2017 年 7 月 4 日
Dear all, I have cell a= {[130 12] [130 9 67 66 2] [34 45 21] [55 6 77 8 12 343 ]} , how to remove the first and second element from the cell,. expect answer b = {[] [67 66 2] [ 21] [ 77 8 12 343 ]}
Thanks in advance

採用された回答

Guillaume
Guillaume 2017 年 7 月 4 日
編集済み: Guillaume 2017 年 7 月 4 日
b = cellfun(@(v) v(3:end), a, 'UniformOutput', false);
  1 件のコメント
skysky2000
skysky2000 2017 年 7 月 4 日
thanks alot sorted it out

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by