How to convert a cell array of datetime to an array of datetime
39 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
JFz
le 29 Mai 2018
Réponse apportée : Ameer Hamza
le 29 Mai 2018
Hi, Is there a simple way to convert a cell array of datetime to an array of datetime without using cellfun? My cell array looks like:
32×1 cell array
{[01-May-2018]}
{[01-May-2018]}
{[01-May-2018]}
{[01-May-2018]}
{[01-May-2018]}
{[01-May-2018]}
I would like it to be just an array of datetime. Thanks for any help.
0 commentaires
Réponse acceptée
Ameer Hamza
le 29 Mai 2018
Try this
array = [cellArray{:}];
[] symbol are necessary to form an array.
0 commentaires
Plus de réponses (0)
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!