Xlimでの時刻の指定
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
plot範囲を指定するためにxlimを使いたいと思いますが、
xlim([2022/06/28 13:32:00 2022/06/28 16:32:00]);
とするとエラーになります。時刻と直接入れる時はどのような書式にするのでしょうか。
0 commentaires
Réponse acceptée
Hernia Baby
le 6 Juil 2022
datetimeをご使用ください
tstart = datetime(2022,6,28,13,32,0)
tend = datetime(2022,6,28,16,32,0)
xlim([tstart tend]);
4 commentaires
Hernia Baby
le 6 Juil 2022
そうですね。最初は自分も全く同じ意見でした。
やっていくうちに、少しずつ便利さや意味がわかってきました。
なので、ここがプログラミング脱初心者の鬼門な気がします。
----
まずはdouble型である程度処理した後、他の型を習得するのがよいかなと思います。
cellfun等を覚えてくると、他のデータ型の良し悪しが少しずつわかってきますよ。
気負わず分からなくなったらAnswersを頼ってください。
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!