1x1 datetime cells into plot
4 ビュー (過去 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!