필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

cell of minutes and seconds

조회 수: 2 (최근 30일)
Ariela Glikman
Ariela Glikman 2019년 2월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
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

답변 (1개)

Stephan
Stephan 2019년 2월 28일
편집: Stephan 2019년 2월 28일
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
madhan ravi
madhan ravi 2019년 2월 28일
Stephan
Stephan 2019년 2월 28일
편집: Stephan 2019년 2월 28일
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.

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by