1x1 datetime cells into plot
조회 수: 11 (최근 30일)
이전 댓글 표시
Hey guys!
I've got a 30224x1 cell data of time which shows as "1x1 datetime" in cells when I import them.
However, I can not able to plot them.
Could anyone help me to do it properly?
댓글 수: 0
채택된 답변
Walter Roberson
2022년 10월 21일
Thethis_Time = [yourCell{:}];
No need to convert to datenum.
댓글 수: 2
Walter Roberson
2022년 10월 21일
Either
Thethis_Time = [yourCell{:}] .';
or
Thethis_Time = vertcat(yourCell{:});
추가 답변 (1개)
David Hill
2022년 10월 21일
Convert to datenum to plot.
for k=1:length(yourCell)
t(k)=datenum(yourCell{k});
end
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!