Xlimでの時刻の指定
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
n n
am 6 Jul. 2022
Kommentiert: Hernia Baby
am 6 Jul. 2022
plot範囲を指定するためにxlimを使いたいと思いますが、
xlim([2022/06/28 13:32:00 2022/06/28 16:32:00]);
とするとエラーになります。時刻と直接入れる時はどのような書式にするのでしょうか。
0 Kommentare
Akzeptierte Antwort
Hernia Baby
am 6 Jul. 2022
datetimeをご使用ください
tstart = datetime(2022,6,28,13,32,0)
tend = datetime(2022,6,28,16,32,0)
xlim([tstart tend]);
4 Kommentare
Hernia Baby
am 6 Jul. 2022
そうですね。最初は自分も全く同じ意見でした。
やっていくうちに、少しずつ便利さや意味がわかってきました。
なので、ここがプログラミング脱初心者の鬼門な気がします。
----
まずはdouble型である程度処理した後、他の型を習得するのがよいかなと思います。
cellfun等を覚えてくると、他のデータ型の良し悪しが少しずつわかってきますよ。
気負わず分からなくなったらAnswersを頼ってください。
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!