@@ -73,11 +73,11 @@ p2 = Point('weather') ...
73
73
.time(datetime('now', 'TimeZone', 'local'));
74
74
75
75
% Create an array of points
76
- array = [p1, p2 , etc];
76
+ array = [p3, p4 , etc];
77
77
78
78
% Save all the points
79
79
influxdb.writer() ...
80
- .append(p1, p2) ...
80
+ .append(p1, p2, etc ) ...
81
81
.append(array) ...
82
82
.execute();
83
83
```
@@ -86,20 +86,20 @@ It is possible to save *large* amounts of samples using the `Series` builder:
86
86
87
87
``` matlab
88
88
% Create a series with many points
89
- series = Series('weather') ...
89
+ series1 = Series('weather') ...
90
90
.tags('city', 'stockholm', 'country', 'sweden') ...
91
- .fields('temperature', [10.5, 11.2, 9.7]) ...
92
- .time(datetime('now', 'TimeZone', 'local') - [0, 1, 2]);
91
+ .fields('temperature', [10.5; 11.2; 9.7]) ...
92
+ .time(datetime('now', 'TimeZone', 'local') - [0; 1; 2] / 24 );
93
93
94
94
% Create a series from an existing timetable
95
95
ttable = timetable(time, variables, etc);
96
- series = Series('weather') ...
96
+ series2 = Series('weather') ...
97
97
.tags('city', 'helsinki', 'country', 'finland') ...
98
98
.import(ttable);
99
99
100
100
% Save the series
101
101
influxdb.writer() ...
102
- .append(series, etc ) ...
102
+ .append(series1, series2 ) ...
103
103
.execute();
104
104
```
105
105
0 commit comments