Effacer les filtres
Effacer les filtres

how to remove the first and second element from cell?

1 vue (au cours des 30 derniers jours)
skysky2000
skysky2000 le 4 Juil 2017
Commenté : skysky2000 le 4 Juil 2017
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

Réponse acceptée

Guillaume
Guillaume le 4 Juil 2017
Modifié(e) : Guillaume le 4 Juil 2017
b = cellfun(@(v) v(3:end), a, 'UniformOutput', false);

Plus de réponses (0)

Catégories

En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by