Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

cell of minutes and seconds

2 visualizzazioni (ultimi 30 giorni)
Ariela Glikman
Ariela Glikman il 28 Feb 2019
Chiuso: MATLAB Answer Bot il 20 Ago 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

Risposte (1)

Stephan
Stephan il 28 Feb 2019
Modificato: Stephan il 28 Feb 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 Commenti
madhan ravi
madhan ravi il 28 Feb 2019
time=[time{:}]
Stephan
Stephan il 28 Feb 2019
Modificato: Stephan il 28 Feb 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.

Questa domanda è chiusa.

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by