Preprocess Data
Functions
| detrend | Subtract offset or trend from time-domain signals contained in iddataobjects | 
| retrend | Add offsets or trends to time-domain data signals stored in iddataobjects | 
| diff | Difference signals in iddata objects | 
| idfilt | Filter data using user-defined passbands, general filters, or Butterworth filters | 
| misdata | Reconstruct missing input and output data | 
| nkshift | Shift data sequences | 
| idresamp | Resample time-domain data by decimation or interpolation | 
| idresampOptions | Option set for idresamp(Since R2023a) | 
| resample | (Not recommended) Resample time-domain data that is stored in an iddataobject by decimation or interpolation (requires
                Signal Processing Toolbox software) | 
| getTrend | Create trend information object to store offset, mean, and trend information for
      time-domain signals stored in iddataobject | 
| chgFreqUnit | Change frequency units of frequency-response data model | 
| fdel | Delete specified data from frequency response data (FRD) models | 
| TrendInfo | Offset and linear trend slope values for detrending data | 
Examples and How To
- Preprocess Data Using Quick StartSubtract mean values from data, and specify estimation and validation data. 
- Extract and Model Specific Data SegmentsThis example shows how to create a multi-experiment, time-domain data set by merging only the accurate data segments and ignoring the rest. 
- How to Detrend Data Using the AppBefore you can perform this task, you must have regularly-sampled, steady-state time-domain data imported into the System Identification app. 
- How to Detrend Data at the Command LineBefore you can perform this task, you must have time-domain data as an iddataobject.
- Resampling Data Using the AppUse the System Identification app to resample time-domain data. 
- Resampling Data at the Command LineDecimate and interpolate time-domain data. 
- How to Filter Data Using the AppThe System Identification app lets you filter time-domain data using a fifth-order Butterworth filter by enhancing or selecting specific passbands. 
- How to Filter Data at the Command LineUse idfiltto apply passband and other custom filters to a time-domain or a frequency-domainiddataobject.
Concepts
- Handling Missing Data and OutliersHandling missing or erroneous data values. 
- Handling Offsets and Trends in DataRemoving and restoring constant offsets and linear trends in data signals. 
- Resampling DataDecimating and interpolating (resampling) data. 
- Filtering DataDeciding whether to filter data before model estimation and how to prefilter data.