ISSCALAR

Purpose:

Returns 1 if input parameter is a scalar.

Syntax:

ISSCALAR(val)

val

-

A series, scalar or string value to test.

Returns:

1 if the input is a scalar, else 0.

Example:

isscalar(3i)

 

returns 1

Example:

isscalar({3i})

 

returns 0

Example:

isscalar("string")

 

returns 0

Example:

isscalar(mag(fft({1, 2, 3, 4})))

 

returns 0

Example:

isscalar(max(mag(fft({1, 2, 3, 4}))))

 

returns 1

Remarks:

If the input is non-numeric, isscalar returns 0.

See Also:

ISARRAY

ISCOMPLEX

ISNUMERIC

ISREAL

ISSTRING