___________________
_____________
_____
_________
_________
2015-06-24 00:00:00
{'Wednesday'}
13
9
4
2015-06-24 01:00:00
{'Wednesday'}
3
3
0
2015-06-24 02:00:00
{'Wednesday'}
1
1
0
2015-06-24 03:00:00
{'Wednesday'}
1
1
0
2015-06-24 04:00:00
{'Wednesday'}
1
1
0
2015-06-24 05:00:00
{'Wednesday'}
7
3
4
2015-06-24 06:00:00
{'Wednesday'}
36
6
30
2015-06-24 07:00:00
{'Wednesday'}
141
13
128
whos bikeTbl bikeData
Name
Size
Bytes Class
Attributes
bikeData
9387x4
1412425 timetable
bikeTbl
9387x5
1487735 table
Access Times and Data
Convert the Day variable to categorical. The categorical data type is designed for data that consists
of a finite set of discrete values, such as the names of the days of the week. List the categories so
they display in day order. Use dot subscripting to access variables by name.
bikeData.Day = categorical(bikeData.Day,{'Sunday','Monday','Tuesday',...
'Wednesday','Thursday','Friday','Saturday'});
In a timetable, the times are treated separately from the data variables. Access the Properties of
the timetable to show that the row times are the first dimension of the timetable, and the variables
are the second dimension. The DimensionNames property shows the names of the two dimensions,
while the VariableNames property shows the names of the variables along the second dimension.
bikeData.Properties
ans =
TimetableProperties with properties:
Description: ''
UserData: []
DimensionNames: {'Timestamp' 'Variables'}
VariableNames: {'Day' 'Total' 'Westbound' 'Eastbound'}
VariableDescriptions: {}
VariableUnits: {}
VariableContinuity: []
RowTimes: [9387x1 datetime]
StartTime: 2015-06-24 00:00:00
SampleRate: NaN
TimeStep: NaN
CustomProperties: No custom properties are set.
Use addprop and rmprop to modify CustomProperties.
By default, table2timetable assigned Timestamp as the first dimension name when it converted
the table to a timetable, since this was the variable name from the original table. You can change the
names of the dimensions, and other timetable metadata, through the Properties.
Change the names of the dimensions to Time and Data.
10 Timetables
10-52
Précédent

- 498/1450

Suivant