dspdata
R2026bDSP data parameter information
Syntax
Hs = dspdata.dataobj(input1,...)
Description
Note
The use of dspdata. is not
recommended. Use the appropriate function interface instead.dataobj
Hs = dspdata.
returns a dataobj(input1,...)dspdata object Hs of type
dataobj. This object contains all the parameter
information needed for the specified type of dataobj. Each
dataobj takes one or more inputs, which are described on
the individual reference pages. If you do not specify any input values, the returned
object has default property values appropriate for the particular
dataobj type.
Note
You must use a dataobj with
dspdata.
Data Objects
A data object, dataobj, for dspdata
specifies the type of data stored in the object. Available
dataobj types for dspdata are
shown below.
| Description | Corresponding Functions |
|---|---|---|
Mean-square spectrum data (power) | ||
Power spectral density data (power/frequency) | ||
Pseudospectrum data (power) |
For more information on each dataobj type, use the
syntax help dspdata.dataobj at
the MATLAB® prompt or refer to its reference page.
Methods
Methods provide ways of performing functions directly on your
dspdata object. You can apply these methods directly on the
variable you assigned to your dspdata object.
Method | Description |
|---|---|
This method applies only to
| |
| |
| |
The
spectrum is assumed to be from a real signal. That is,
| |
| |
The
spectrum is assumed to be from a real signal. That is,
| |
Displays the data graphically in the current figure window. For a For a For a | |
This method applies only to
| |
If your
data is nonuniformly sampled, converting from
| |
If
your data is nonuniformly sampled, converting from
|
For more information on each method, use the syntax help
dspdata/method at the MATLAB prompt.
Plotting a dspdata Object
The plot method displays the dspdata object spectrum in a
separate figure window.
Modifying a dspdata Object
After you create a dspdata object, you can use any of the
methods in the table above to modify the object properties. For example, to change
an object, Hs, from two-sided to one-sided, use
onesided(Hs).
Examples
See the dspdata.msspectrum, dspdata.psd, and dspdata.pseudospectrum reference pages for specific examples.
Version History
Introduced before R2006a