remove end comma
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
hi,
I have '2005-04-19'
how get 2005-04-19
thanks
0 comentarios
Respuestas (1)
Walter Roberson
el 7 de Nov. de 2011
Do you really have the apostrophes there, or are you just seeing the way that MATLAB displays a string that is stored in a cell array?
If the apostrophes are really there, then
B = A(2:end-1);
4 comentarios
Walter Roberson
el 7 de Nov. de 2011
Ah, you changed in and out of date formats for no apparent reason.
This should do the conversion in one step:
c33 = datenum(c{3}, 'yyyy-mm-dd');
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!