To create a timetable with one column in Matlab, you can use the timetable function along with the datetime function. Here's an example:
main.m199 chars12 lines
This will create a timetable with a single column containing the data 10 15 20 25 30, and row times spaced one hour apart from datetime('now') to 5 hours into the future.
Output:
main.m195 chars9 lines
You can add more columns by creating additional data vectors and passing them to the timetable function along with the time column.
gistlibby LogSnag