Documentation Center 
On this page… 

TimeDomain Data Representation 
Timedomain data consists of one or more input variables u(t) and one or more output variables y(t), sampled as a function of time. If there is no input variable, see TimeSeries Data Representation.
You must organize timedomain input/output data in the following format:
For singleinput/singleoutput (SISO) data, the sampled data values must be double column vectors.
For multiinput/multioutput (MIMO) data with N_{u} inputs and N_{y} outputs, and N_{s} number of data samples (measurements):
The input data must be an N_{s}byN_{u} matrix
The output data must be an N_{s}byN_{y} matrix
To use timedomain data for identification, you must know the sampling interval. If you are working with uniformly sampled data, use the actual sampling interval from your experiment. Each data value is assigned a time instant, which is calculated from the start time and sampling interval. You can work with nonuniformly sampled data only at the command line by specifying a vector of time instants using the SamplingInstants property of iddata, as described in Constructing an iddata Object for TimeDomain Data.
For continuoustime models, you must also know the input intersample behavior, such as zeroorder hold and firstorderhold.
For more information about importing data into MATLAB^{®}, see Data Import and Export.
After you have the variables in the MATLAB workspace, import them into the System Identification Tool GUI or create a data object for working at the command line. For more information, see Import TimeDomain Data into the GUI and Representing Time and FrequencyDomain Data Using iddata Objects.
Timeseries data is timedomain or frequencydomain data that consist of one or more outputs y(t) with no corresponding input. For more information on how to obtain identification data, see Ways to Obtain Identification Data.
You must organize timeseries data in the following format:
For singleinput/singleoutput (SISO) data, the output data values must be a column vector.
For data with N_{y} outputs, the output is an N_{s}byN_{y} matrix, where N_{s} is the number of output data samples (measurements).
To use timeseries data for identification, you also need the sampling interval. If you are working with uniformly sampled data, use the actual sampling interval from your experiment. Each data value is assigned a sample time, which is calculated from the start time and the sampling interval. If you are working with nonuniformly sampled data at the command line, you can specify a vector of time instants using the iddata SamplingInstants property, as described in Constructing an iddata Object for TimeDomain Data. Note that model estimation cannot be performed using nonuniformly sampled data.
For more information about importing data into the MATLAB workspace, see Data Import and Export.
After you have the variables in the MATLAB workspace, import them into the System Identification Tool GUI or create a data object for working at the command line. For more information, see Import TimeDomain Data into the GUI and Representing Time and FrequencyDomain Data Using iddata Objects.
For information about estimating timeseries model parameters, see TimeSeries Model Identification.
Frequencydomain data consists of either transformed input and output timedomain signals or system frequency response sampled as a function of the independent variable frequency.
What Is FrequencyDomain Input/Output Signal?. Frequencydomain data is the Fourier transform of the input and output timedomain signals. For continuoustime signals, the Fourier transform over the entire time axis is defined as follows:
In the context of numerical computations, continuous equations are replaced by their discretized equivalents to handle discrete data values. For a discretetime system with a sampling interval T, the frequencydomain output Y(e^{iw}) and input U(e^{iw}) is the timediscrete Fourier transform (TDFT):
In this example, k = 1,2,...,N, where N is the number of samples in the sequence.
In practice, the Fourier transform cannot be handled for all continuous frequencies and you must specify a finite number of frequencies. The discrete Fourier transform (DFT) of timedomain data for N equally spaced frequencies between 0 and the sampling frequency 2π/N is:
The DFT is useful because it can be calculated very efficiently using the fast Fourier transform (FFT) method. Fourier transforms of the input and output data are complex numbers.
For more information on how to obtain identification data, see Ways to Obtain Identification Data.
How to Represent FrequencyDomain Data in MATLAB. You must organize frequencydomain data in the following format:
Input and output
For singleinput/singleoutput (SISO) data:
The input data must be a column vector containing the values
The output data must be a column vector containing the values
k=1, 2, ..., N_{f}, where N_{f} is the number of frequencies.
For multiinput/multioutput data with N_{u} inputs, N_{y } outputs and N_{f} frequency measurements:
The input data must be an N_{f}byN_{u} matrix
The output data must be an N_{f}byN_{y} matrix
Frequencies
Must be a column vector.
For more information about importing data into the MATLAB workspace, see Data Import and Export.
After you have the variables in the MATLAB workspace, import them into the System Identification Tool GUI or create a data object for working at the command line. For more information, see Importing FrequencyDomain Input/Output Signals into the GUI and Representing Time and FrequencyDomain Data Using iddata Objects.
What Is FrequencyResponse Data?. Frequencyresponse data, also called frequencyfunction data, consists of complex frequencyresponse values for a linear system characterized by its transfer function G. Frequencyresponse data tells you how the system handles sinusoidal inputs. You can measure frequencyresponse data values directly using a spectrum analyzer, for example, which provides a compact representation of the inputoutput relationship (compared to storing input and output independently).
The transfer function G is an operator that takes the input u of a linear system to the output y:
For a continuoustime system, the transfer function relates the Laplace transforms of the input U(s) and output Y(s):
In this case, the frequency function G(iw) is the transfer function evaluated on the imaginary axis s=iw.
For a discretetime system sampled with a time interval T, the transfer function relates the Ztransforms of the input U(z) and output Y(z):
In this case, the frequency function G(e^{iwT}) is the transfer function G(z) evaluated on the unit circle. The argument of the frequency function G(e^{iwT}) is scaled by the sampling interval T to make the frequency function periodic with the sampling frequency .
When the input to the system is a sinusoid of a specific frequency, the output is also a sinusoid with the same frequency. The amplitude of the output is times the amplitude of the input. The phase of the shifted from the input by . G is evaluated at the frequency of the input sinusoid.
Frequencyresponse data represents a (nonparametric) model of the relationship between the input and the outputs as a function of frequency. You might use such a model, which consists of a table or plot of values, to study the system frequency response. However, this model is not suitable for simulation and prediction. You should create parametric model from the frequencyresponse data.
For more information on how to obtain identification data, see Ways to Obtain Identification Data.
How to Represent FrequencyResponse Data in MATLAB. You can represent frequencyresponse data in two ways:
Complexvalues G(e^{iω}) , for given frequencies ω
Amplitude and phase shift values
You can import both the formats directly in the System Identification Tool GUI. At the command line, you must represent complex data using an frd or idfrd object. If the data is in amplitude and phase format, convert it to complex frequencyresponse vector using h(ω) = A(ω)e^{jϕ(ω)}.
You must organize frequencyresponse data in the following format:
RrequencyResponse Data Representation  For SingleInput SingleOutput (SISO) Data  For MultiInput MultiOutput (MIMO) Data 

Complex Values 


Amplitude and phase shift values 


For more information about importing data into the MATLAB workspace, see Data Import and Export.
After you have the variables in the MATLAB workspace, import them into the System Identification Tool GUI or create a data object for working at the command line. For more information about importing data into the GUI, see Importing FrequencyResponse Data into the GUI. To learn more about creating a data object, see Representing FrequencyResponse Data Using idfrd Objects.