Signal Processing Toolbox | ![]() ![]() |
Using SPTool: Filtering and Analysis of Noise
The following sections provide an example of using the GUI-based interactive tools to:
Importing a Signal into SPTool
To import a signal into SPTool from the workspace or disk, the signal must be either:
For this example, create a new signal at the command line and then import it as a structure into SPTool.
randn('state',0);
x = randn(5000,1);
sptool
The SPTool window is displayed.
Notice that the variable x
is displayed in the Workspace Contents list. (If
it is not, select the From Workspace radio button to display the contents of
the workspace.)
x
in the Workspace Contents list.
x
in the Data field.
5000
in the Sampling Frequency field.
noise
in the Name field.
At this point, the signal noise[vector]
is selected in SPTool's Signals list.
Note
You can import filters and spectra into SPTool in much the same way as you import signals. See Importing Filters and Spectra into SPTool for specific details. You can also import signals from MAT-files on your disk, rather than from the workspace. See Loading Variables from the Disk for more information. Typehelp sptool for information about importing from the command line. |
![]() | Getting Help | Designing a Filter | ![]() |