1x1 datetime cells into plot
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ercan
le 21 Oct 2022
Commenté : Walter Roberson
le 21 Oct 2022
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 commentaires
Réponse acceptée
Walter Roberson
le 21 Oct 2022
Thethis_Time = [yourCell{:}];
No need to convert to datenum.
2 commentaires
Walter Roberson
le 21 Oct 2022
Either
Thethis_Time = [yourCell{:}] .';
or
Thethis_Time = vertcat(yourCell{:});
Plus de réponses (1)
David Hill
le 21 Oct 2022
Convert to datenum to plot.
for k=1:length(yourCell)
t(k)=datenum(yourCell{k});
end
2 commentaires
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!