How do I use a timevector of format HH:MM:SS created using datestr in creating a timeseries object?
조회 수: 2 (최근 30일)
이전 댓글 표시
I had created a timevector using datestr function. This timevector needs to go in place of timevalues in the timeseries function. But when I create the timeseries object I am getting number values in the time values, and not in the HH:MM:SS format. The time values in the timeseries object are of the format 

time=datestr(total,'HH:MM:SS'); % total is the no. of days from matlab reference
Ts=timeseries(field/1000,time);
댓글 수: 0
채택된 답변
Walter Roberson
2019년 3월 29일
편집: Walter Roberson
2019년 3월 29일
You have to set the Timeinfo Units and Format properties
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Genomics and Next Generation Sequencing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!