Main Content

dpssload

Load discrete prolate spheroidal sequences from database

Description

dpsSeq = dpssload(seqLength,timeHalfBW) loads the discrete prolate spheroidal (DPSS) or Slepian sequences with length seqLength and time-bandwidth product timeHalfBW from the DPSS MAT file database dpss.mat. Each column of dpsSeq corresponds to a sequence. To create the dpss.mat file, use the dpsssave function.

example

[dpsSeq,lambda] = dpssload(seqLength,timeHalfBW) additionally loads the frequency-domain energy concentration ratios corresponding to the sequences.

example

Examples

collapse all

The file dpss.mat has four Slepian sequences. Each sequence has 128 samples and time-half-bandwidth product of 3, 6, 9, and 12. Load the sequence with a time-half-bandwidth product of 9.

seqLength = 128;
timeHalfBW = 9;

[dpsSeqRtrv,lambdaRtrv] = dpssload(seqLength,timeHalfBW);

List the variable information of the retrieved Slepian sequence and frequency-domain energy concentration ratios.

whos dpsSeqRtrv lambdaRtrv
  Name              Size            Bytes  Class     Attributes

  dpsSeqRtrv      128x18            18432  double              
  lambdaRtrv       18x1               144  double              

Input Arguments

collapse all

Sequence length, specified as a positive integer.

Data Types: single | double

Time-half-bandwidth product, specified as a positive scalar. This argument must be less than seqLength/2.

Data Types: single | double

Output Arguments

collapse all

Slepian sequences, returned as a matrix with a number of rows equal to seqLength and columns equal to round(2*timeHalfBW).

Frequency-domain energy concentration ratios, returned as a column vector of length equal to the number of Slepian sequences.

More About

collapse all

Version History

Introduced before R2006a