11-Jan-2016 09:00:00 98.97 97.91
08-Jan-2016 09:00:00 98.55 99.88
Concatenate the timetables. You can concatenate timetables vertically when they have the
same variables. The row times label the rows and are not contained in a timetable
variable. Note that the row times of a timetable can be out of order and do not need to be
regularly spaced. For example, op does not include days that fall on weekends. A
timetable also can contain duplicate times. op contains two rows for 08-Jan-2016
09:00:00.
op = [opWeek2;opWeek1]
op=10×3 timetable
Time AAPL FB
____________________ ______ ______
14-Jan-2016 09:00:00 97.96 95.85
13-Jan-2016 09:00:00 100.32 100.58
12-Jan-2016 09:00:00 100.55 99
11-Jan-2016 09:00:00 98.97 97.91
08-Jan-2016 09:00:00 98.55 99.88
08-Jan-2016 09:00:00 98.55 99.88
07-Jan-2016 09:00:00 98.68 100.5
06-Jan-2016 09:00:00 100.56 101.13
05-Jan-2016 09:00:00 105.75 102.89
04-Jan-2016 09:00:00 102.61 101.95
Concatenate Timetables Horizontally
You also can concatenate timetables horizontally. The timetables must have the same row
times and different variables.
Display the timetable opOtherStocks. The timetable has the same row times as
opWeek1, but variables for different stocks.
opOtherStocks
opOtherStocks=5×3 timetable
Time MSFT TWTR
____________________ _____ _____
08-Jan-2016 09:00:00 52.37 20.51
07-Jan-2016 09:00:00 52.7 21
10 Timetables