how to convert character data to double?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Lilya
el 3 de Nov. de 2018
Comentada: Lilya
el 4 de Nov. de 2018
Hi all,
i have a char array that has these values below, which i want to get a bouble array of it.
01/04/2016
02/04/2016
03/04/2016
04/04/2016
.... %etc until
20/05/2016
Any help would be appreciated.
Thanks
0 comentarios
Respuesta aceptada
madhan ravi
el 3 de Nov. de 2018
Editada: madhan ravi
el 3 de Nov. de 2018
Use
datenum() or datetime()
Example:
DateString = ['01/04/2016';'02/04/2016';'03/04/2016';'04/04/2016';'20/05/2016'];
formatIn = 'mm/dd/yyyy';
datenum(DateString,formatIn)
datetime(DateString)
3 comentarios
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!