How to use duration data in the x axis of a patch graph?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Pietro Fedrizzi
am 23 Okt. 2021
Kommentiert: Star Strider
am 25 Okt. 2021
I have to realize a "timeline" patch graph. Even though the vectors X and Y that I use in the patch function have the same dimensions, it says that "vectors must be the same length". I think it's because in my case I use for X, duration type data.
Any suggestions on how to handle duration data in a patch graph?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 23 Okt. 2021
Post the code and post the MATLAB version you are using. Only in the last 2 releases (that I am aware of) has patch supported datetime or duration arrays.
.
10 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Line Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!