First Col to Rep Date in Double Array
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Tatte Berklee
am 27 Nov. 2019
Beantwortet: Kavya Vuriti
am 4 Dez. 2019
I have a beginner question.
I have an array of doubles where columns from 2 to 10 stores doubles.
But I need the first column to represent time, so I can plot them against whichever double series I need to.
I don't know exactly how to get around with this.
I have the dates in serial numbers, but when I plot them against other double series, the x-axis obviously shows numbers instead of something like 11/1/2019.
How can I solve this issue??
4 Kommentare
Akzeptierte Antwort
Kavya Vuriti
am 4 Dez. 2019
Hi,
You can use timetable array which associates a time with each row and then plot them against date and time using stackedplot.
Refer the following links for more information on these functions: https://www.mathworks.com/help/matlab/ref/timetable.html, https://www.mathworks.com/help/matlab/ref/stackedplot.html
0 Kommentare
Weitere Antworten (1)
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!