how to remove the first and second element from cell?

3 次查看(过去 30 天)
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);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by