2.11.2.2 cwt(Pro)


Menu Information

Analysis: Signal Processing: Wavelet: Continuous Wavelet

Brief Information

Compute one dimensional continuous wavelet transform coefficients

Additional Information

This feature is for OriginPro only.

Command Line Usage

1. cwt ix1:=Col(1) ix2:=Col(2);

2. cwt ix1:=Col(1) ix2:=Col(2) type:=maxhat;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Discrete Signal ix1

Input

vector

<active>

Specify the input signal

Scale ix2

Input

vector

<active>

Specify the scale vector. All scales should be real and positive.

Wavelet Type type

Input

int

0

Specify the type of wavelet.

Option list

  • morlet :Morlet{0}
    The Morlet wavelet.
  • dgauss:DGauss{1}
    The Derivative of a Gaussian wavelet.
  • mexhat:MexHat{2}
    The Mexican Hat Wavelet.
Wave Number param

Input

int

5

If wavelet type is Morlet, this variable specifies the wave number, which should be not less than 5 and not larger than 20. If wavelet type is DGauss, this variable specifies the order of derivative, which should be a positive integer less than 9.

Use Pseudo-Frequency upf

Input

int

0

Specify whether to create the pseudo-frequency and used as the vertical tick label for image plot created by the coefficient matrix. 1 means create pseudo-frequency.

Pseudo-Frequency pf

Output

vector

<optional>

Specify a range for outputting the pseudo-frequency.

See the syntax here.

Coefficient rcoef

Output

Range

[<input>]<new>!1

Specify a range for outputting the coefficients.

See the syntax here.

Coefficient Matrix mcoef

Output

MatrixObject

<new>

Check this if you want to output the coefficients to a matrix. Then you can specify the output matrix.

See the syntax here.

Create Image Plot plot

Input

int

1

Specify whether to create plot for the result.

Examples

1. To perform cwt to data in Column 2 and scale vector in Column 3 with default setting, use the script command:

cwt ix1:=col(2) ix2:=col(3);

2. To perform cwt using a pre-saved analysis theme called MyTheme, use the Command Window:

cwt -t "MyTheme"

3. To perform cwt and create and output the pseudo frequency for image plot:

cwt -r 2 ix1:=col(1) ix2:=col(2)upf:=1 pf:=[<input>]<input>!<new>, mcoef:=<new>;

For more examples, please refer to XF Script Dialog (press F11).

More Information

For more informatioin, please refer to our User Guide.


Related X-Functions

dwt, idwt