WSSIZE

Purpose:

Returns the total number of samples in a worksheet.

Syntax:

WSSIZE(W1, W2, ... Wn, bytes)

Wn

-

Optional, Zero or more Windows. Defaults to all windows in the worksheet.

bytes

-

Optional. An integer, the byte size flag.

0:

return total number of samples (default)

1:

return total number of bytes

Returns:

An integer, the total number of samples or bytes used by the current worksheet.

Example:

newworksheet(4);

W1 := {1, 2, 4, 7}

W2 := fft(w1)

 

wssize()

 

returns 8, the total number of samples in the worksheet.

Example:

newworksheet(4);

W1 := {1, 2, 4, 7}

W2 := fft(w1)

 

wssize(1)

 

returns 96, the total number of bytes in the worksheet.

Example:

newworksheet(4);

W1 := {1, 2, 4, 7}

W2 := fft(w1)

 

wssize(w2, 1)

 

returns 64, the total number of bytes in W2. W2 contains 4 complex values where each value is 16 bytes.

Example:

newworksheet(4);

W1 := {1, 2, 4, 7}

W2 := fft(w1)

 

wssize(w3, w4)

 

returns 0, since neither W3 nor W4 contains a series.

Remarks:

WSSIZE returns the total number of data samples in a worksheet.

 

All windows are processed including hidden windows.

 

If bytes is nonzero, the total number of data bytes is returned.

See Also:

LENGTH

NUMWINDOWS

SIZE

NUMEL