User`s guide

Generating Data Using Simulation
Generating Data Using Simulation
In this section...
“Commands for Generating and Simulating Data” on page 1-115
“Example Crea t ing D ata with Periodic I n puts” on page 1-116
“Example Generating Data Using Simulation” on page 1-117
“Simulating D ata Using Other MathWorks Products” on page 1-118
Commands for Generating and Simulating Data
You can ge n era te input data and simulate output data using a specied
model structure.
Simulating output data requires that you have a parametric model. For more
information about commands for constructing models, see “Commands for
Constructing Model Structures” on page 2-13.
To generate input data, use
idinput to construct a signal with the desired
characteristics, such as a random Gaussian or binary signal or a sinusoid.
idinput returns a matrix of input values.
Thefollowingtableliststhecommands you can use to simulate output data.
For more information about these commands, see the corresponding reference
pages.
Commands for Generating and Simulating Data
Command
Description
Example
iddata
Constructs an iddata
object with input
channels on ly.
To construct input data
data,usethe
following command:
data = iddata([ ],[u v])
u
is the input data, and v is white noise.
1-115