convert milliseconds (ms) to seconds (s)
이전 댓글 표시
Hello,
we have an array with stimuli onset times in milliseconds,
ms = [1600901 1970185 2340488 2710467 3080481 3449869]
and we want to convert those values to seconds with a specific format, that would be, 1600901/1000 = 1600.901.
But when I do that in MATLAB I get this result:
s = ms/1000
s =
1.0e+03 *
1.6009 1.9702 2.3405 2.7105 3.0805 3.4499
Is there a way to obtain this insead:
s = [1600.901 1970.185 2340.488 2710.467 3080.481 3449.869]
Thank you
채택된 답변
추가 답변 (1개)
madhan ravi
2019년 7월 26일
편집: madhan ravi
2019년 7월 26일
format longg
ms / 1000
doc format
댓글 수: 3
looking for answers
2019년 7월 26일
madhan ravi
2019년 7월 26일
편집: madhan ravi
2019년 7월 26일
See Stephen‘s valuable comment - https://in.mathworks.com/matlabcentral/answers/473594-convert-milliseconds-ms-to-seconds-s#comment_728675
looking for answers
2019년 7월 28일
카테고리
도움말 센터 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!