Main Content

dpsssave

Discrete prolate spheroidal or Slepian sequence database

Description

dpsssave(timeHalfBW,dpsSeq,lambda) creates a database of discrete prolate spheroidal (DPSS) or Slepian sequences and saves the results in dpss.mat.

Note

If the database dpss.mat exists, subsequent calls to dpsssave append the Slepian sequences to the existing file. If the sequences are already in the existing file, then the function overwrites the old values and issues a warning.

example

saveFailureStatus = dpsssave(timeHalfBW,dpsSeq,lambda) returns a 0 if the database saving operation was successful or a 1 if unsuccessful.

Examples

collapse all

Construct discrete prolate spheroidal sequences of length 512. Specify a time-half-bandwidth product of 2.5.

seq_length = 512;
time_halfbandwidth = 2.5;
[dps_seq,lambda] = dpss(seq_length,time_halfbandwidth);

Create a database using the output Slepian sequences and frequency-domain concentration ratios. The function saves the database, dpss.mat, in the current working directory. The output variable, status, is 0 if the function saves the database successfully.

status = dpsssave(time_halfbandwidth,dps_seq,lambda)
status = 
0

Input Arguments

collapse all

Time-half-bandwidth product, specified as a positive scalar. This argument determines the frequency concentrations of the Slepian sequences in dpsSeq.

Data Types: single | double

Slepian sequences, specified as a matrix. The number of rows in dpsSeq is equal to the length of the sequences.

Data Types: single | double

Frequency concentration ratios of Slepian sequences in dpsSeq, specified as a vector. The length of lambda is equal to the number of columns in dpsSeq.

Data Types: single | double

More About

collapse all

Version History

Introduced before R2006a