Signal Processing Toolbox |
Working with Data
The examples in the preceding sections obtain data in one of two ways:
sin
, cos
, sawtooth
, square
, or sinc
Some applications, however, may need to import data from outside MATLAB. Depending on your data format, you can do this in the following ways:
load
command.
fopen
, fread
, and fscanf
.
Other resources are also useful, such as a high-level language program (in Fortran or C, for example) that converts your data into MAT-file format - see the MATLAB External Interfaces/API Reference documentation for details. MATLAB reads such files using the load
command.
Similar techniques are available for exporting data generated within MATLAB. See the MATLAB documentation for more details on importing and exporting data.
Note
All Signal Processing Toolbox functions accept double-precision inputs. The Filter Design Toolbox, along with the Fixed-Point Toolbox, enables single-precision floating-point and fixed-point support for most dfilt structures.
|
The Dirichlet Function | Filter Implementation and Analysis |
© 1994-2005 The MathWorks, Inc.