Extract Cell Data Contain With Char
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Tyann Hardyn
el 21 de Abr. de 2022
Comentada: Deepak Gupta
el 21 de Abr. de 2022
Hi, Community
I just have a simple answer... How to extract this cell data :
fg = '{'07-Apr-2022'; '08-Apr-2022'; '09-Apr-2022'}';
Into :
fg = [07-Apr-2022; 08-Apr-2022; 09-Apr-2022] (datetime array)
Thank you so much...
0 comentarios
Respuesta aceptada
KSSV
el 21 de Abr. de 2022
fg = {'07-Apr-2022'; '08-Apr-2022'; '09-Apr-2022'};
datetime(fg)
4 comentarios
Deepak Gupta
el 21 de Abr. de 2022
Can you try
fg = datetime(fg,'InputFormat','dd-MMM-yyyy')
Más respuestas (0)
Ver también
Categorías
Más información sobre Dates and Time en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!