Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Seperate Matlab data for my text file
조회 수: 1 (최근 30일)
이전 댓글 표시
I have data where the year and month are stuck together, as seen 180001, should be 01 1800, how do I seperate that?
댓글 수: 0
답변 (1개)
Bhaskar R
2020년 1월 20일
편집: Bhaskar R
2020년 1월 20일
Suppose your data in the variable data
data_in_time = datetime(num2str(data(:,1)), 'Format', 'yyyyMM');
data_in_time.Format = 'MM-yyyy';
If you want data in double class instead of datetime
data_in_double = datevec(data_in_time);
% then get the repective column accordingly(years/months)
이 질문은 마감되었습니다.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!