datetime don't displays the correct order
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Trop Trader
 el 2 de Mzo. de 2024
  
    
    
    
    
    Respondida: Star Strider
      
      
 el 2 de Mzo. de 2024
             aaa=datetime(dataa,"InputFormat", "dd/MM/yyyy")
 '2008-01-17'
'2008-01-18'
'2008-01-19'
'2008-01-20'
'2008-01-21'
'2008-01-22'
'2008-01-23'
'2008-01-24'
'2008-01-25'
'2008-01-26'
but is not "dd/MM/yyyy"
0 comentarios
Respuesta aceptada
  Star Strider
      
      
 el 2 de Mzo. de 2024
        The 'InputFormat' and 'Format' name-value pairs are not the same.   You need to specify them separately — 
 aaa=datetime(dataa,"InputFormat", "dd/MM/yyyy", 'Format','dd/MM/yyyy')
load('matlab_data.mat')
% whos
textdata = A.textdata
aaa = datetime(textdata,"InputFormat", "dd/MM/yyyy", 'Format','dd/MM/yyyy')
% load('matlab_aaa.mat')
% whos
I am not certain what to do with the other .mat file.  
.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Calendar 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!

