how to get the last value of a cell
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dear Friend,
I generated a series of N by 1 cells with different lengths. I want to generate a new vector, each element of this vector is the last value of the cells.i.e the first value of this vector is the last value of the first cell, the second value of this vector is the last value of the second cell, and so on. anyone can advise me how to achieve this?
1 commentaire
Image Analyst
le 26 Août 2013
Modifié(e) : Image Analyst
le 26 Août 2013
What type/class of variable is in the cells? Characters? double arrays? Structures? Scalar integers?
Have you checked out cellfun()?
Réponse acceptée
Plus de réponses (2)
Voir également
Catégories
En savoir plus sur Data Type Conversion 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!