LTPDA Toolbox™ | contents | ![]() ![]() |
SPLIT split an analysis object into the specified segments. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: SPLIT split an analysis object into the specified segments. CALL: b = split(a, pl) INPUTS: a - input analysis object pl - input parameter list (see below for parameters) OUTPUTS: b - array of analysis objects EXAMPLES: 1.) split method by frequency. Get the values from 10-100 Hz pl = plist('frequencies', [10 100]); ao_new = split(a1, pl); 2.) split method by time. Get the values from 0.0 to 1.0 Seconds AND from 1.0 to 2.5 seconds pl = plist('times', [0.0 1.0 1.0 2.5]); ao_new = split(a1, pl); 3.) split method by samples. Get the samples from 1 to 50 AND from 150 to 200. pl = plist('samples', [1 50 150 200]); ao_new = split(a1, pl); 4.1) Select an interval with strings --> t0 = time('14:00:00') pl = plist('start_time', '14:00:01', ... 'end_time', '14:00:02'); ao_new = split(a1, pl); --> t0 = time('14:00:00') pl = plist('start_time', '14:00:01', ... 'duration', '00:00:02'); ao_new = split(a1, pl); Select an interval with seconds --> t0 = time(3) pl = plist('start_time', 5, ... 'end_time', 7); ao_new = split(a1, pl); 4.2) Select an interval with time objects --> t0 = time('14:00:00') pl = plist('start_time', time('14:00:01'), ... 'end_time', time('14:00:03')); ao_new = split(a1, pl); --> t0 = time(3) pl = plist('start_time', time(5), ... 'duration', time(2)); ao_new = split(a1, pl); 4.3) Select an interval with a time span object --> t0 = time('14:00:00') pl = plist('timespan', timespan('14:00:00', '14:00:05')); ao_new = split(a1, pl); Parameters Description VERSION: $Id: split.m,v 1.124 2012/02/10 10:28:29 mauro Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details | |
---|---|
Access | public |
Defining Class | ao |
Sealed | 0 |
Static | 0 |
Sets for this method … |
---|
Default |
By Times |
By Offsets |
By Frequencies |
By Samples |
By Chunks |
By Interval Start/End |
By Interval Start/Duration |
By Interval Timespan |
Default |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
TIMES | [] | none | Split the ao into time segments. An array of start/stop times to split by. The times should be relative to the object reference time (t0). |
By Times |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
TIMES | [] | none | Split the ao into time segments. An array of start/stop times to split by. The times should be relative to the object reference time (t0). |
By Offsets |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
OFFSETS | [] | none | Split the ao into time segments. An array of start/stop offsets to split by. Positive offsets are relative to the first sample. A negative offset is taken from the end of the vector. For example [10 -10] removes 10 seconds from the beginning and end of the vector. An end time of 0 indicates the end of the vector. |
By Frequencies |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
FREQUENCIES | [] | none | An array of start/stop frequencies to split by. |
By Samples |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
SAMPLES | [] | none | An array of start/stop samples to split by. |
By Chunks |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
N | [] | none | Split into N contiguous pieces. |
MATCH | 1 |
|
Define if the last chunk should keep any remaining data samples. |
By Interval Start/End |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
START_TIME | 1970-01-01 00:00:00.000 UTC | none | Start time can be either a string or a time object. |
END_TIME | 1970-01-01 00:00:00.000 UTC | none | End time can be either a string or a time object. |
By Interval Start/Duration |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
START_TIME | 1970-01-01 00:00:00.000 UTC | none | Start time can be either a string or a time object. |
DURATION | 1970-01-01 00:00:00.000 UTC | none | Duration can be either a string or a time object. |
By Interval Timespan |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
TIMESPAN | (start: 1970-01-01 00:00:00.000 UTC end: 1970-01-01 00:00:00.000 UTC) | none | The start/end time are specified in the time span object. |
Some information of the method ao/split are listed below: | |
---|---|
Class name | ao |
Method name | split |
Category | Signal Processing |
CVS Version | $Id: split.m,v 1.124 2012/02/10 10:28:29 mauro Exp $ |
Min input args | 1 |
Max input args | -1 |
Min output args | 1 |
Max output args | -1 |
![]() |
Method: ao/spikecleaning | Method: ao/spsd | ![]() |
©LTP Team