MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

06-Jan-2016 09:00:00 54.32 21.62
05-Jan-2016 09:00:00 54.93 22.79
04-Jan-2016 09:00:00 54.32 22.64


Concatenate opWeek1 and opOtherStock. The output timetable has one set of row times
and the variables from both timetables.


op = [opWeek1 opOtherStocks]


op=5×5 timetable
Time AAPL FB MSFT TWTR




08-Jan-2016 09:00:00 98.55 99.88 52.37 20.51
07-Jan-2016 09:00:00 98.68 100.5 52.7 21
06-Jan-2016 09:00:00 100.56 101.13 54.32 21.62
05-Jan-2016 09:00:00 105.75 102.89 54.93 22.79
04-Jan-2016 09:00:00 102.61 101.95 54.32 22.64


Synchronize Timetables and Indicate Missing Data


Load air quality data and weather measurements from two different timetables and
synchronize them. The dates of the measurements range from November 15, 2015, to
November 19, 2015. The air quality data come from a sensor inside a building, while the
weather measurements come from sensors outside.


load indoors
load outdoors


Display the first five lines of each timetable. They contain measurements of different
quantities taken at different times.


indoors(1:5,:)


ans=5×3 timetable
Time Humidity AirQuality




2015-11-15 00:00:24 36 80
2015-11-15 01:13:35 36 80
2015-11-15 02:26:47 37 79
2015-11-15 03:39:59 37 82


Combine Timetables and Synchronize Their Data
Free download pdf