How to add hours:minutes in Matlab?
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Tahariet Sharon
 el 28 de En. de 2021
  
    
    
    
    
    Comentada: Tahariet Sharon
 el 28 de En. de 2021
            Let's say I have hours:minute data in format HH:MM, and want to do statistics with it. I want to have the data in minutes for instance to be able to do t-tests. How to go about this in Matlab? Thanks!
0 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 28 de En. de 2021
        t='10:10';
minutes(duration(t, 'inputformat', 'hh:mm'))
3 comentarios
  Walter Roberson
      
      
 el 28 de En. de 2021
				If it is a cell array of character vectors, use the call I provided.
Más respuestas (1)
Ver también
Categorías
				Más información sobre Creating and Concatenating Matrices 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!


