Truncate History
Description
The signal operator block Truncate History
truncates a datasets to the latest number of rows M
based on a the Latest
property.
This is useful if you only want the newest sample of a dataset for example.
Input
The input is MxN
Output
The output is KxN
where K
is the value of the Latest
property if Axis
equals 0 or N
if Axis
equals 1.
Attributes
Attribute | Value |
---|---|
Name | TruncateHistory |
Axis | ☐ 0 |
Latest | 1 |
Channels | 1 |
Name
Name specifies the name of the block.
Axis
Axis is what axis the truncation should happen on.
Latest
Latest specifies how many samples you want to output. If latest is 2 M
is equal to the last 2
samples
Channels
Channels specifies the number of input(s)/output(s) the block will have.