tsOut = addsample(ts, 'Time', t, 'Data', x)
tsOut = addsample(ts, 'Time', t, 'Data', x, 'Quality', q)
| Parameter | Description |
|---|---|
| ts | Input timeseries object. |
| t | Sample time to append. |
| x | Sample data to append. |
| q | Optional quality value. |
| Parameter | Description |
|---|---|
| tsOut | Output timeseries object with the sample added. |
addsample Appends a sample using name-value pairs. Existing sample order is preserved by the append operation.
ts = timeseries([1; 2], [10; 11], 'Name', 'speed');
ts = addsample(ts, 'Time', 12, 'Data', 3);
ts.Time
| Version | Description |
|---|---|
| 2.0.0 | initial version |