Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

cell of minutes and seconds

2 visualizaciones (últimos 30 días)
Ariela Glikman
Ariela Glikman el 28 de Feb. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
hi,
i have cell of minutes and seconds, and i need it on minutes.
the cell is:
time= {[3,41] [2,59] [3,12] [5,27]}
ie: [2 30] is 2.5 minutes

Respuestas (1)

Stephan
Stephan el 28 de Feb. de 2019
Editada: Stephan el 28 de Feb. de 2019
time= {[3,41] [2,59] [3,12] [5,27]};
time_1 = [time{:}];
mins = minutes(time_1(1,1:2:end)) + seconds(time_1(1,2:2:end))
  2 comentarios
madhan ravi
madhan ravi el 28 de Feb. de 2019
time=[time{:}]
Stephan
Stephan el 28 de Feb. de 2019
Editada: Stephan el 28 de Feb. de 2019
i did not want to overwrite the original data. not sure if it is still needed. but i found the issue and corrected it. thank you madhan.

La pregunta está cerrada.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by