how to remove the first and second element from cell?

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개)

카테고리

도움말 센터File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

태그

질문:

2017년 7월 4일

댓글:

2017년 7월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by