isfloat

Returns true if input is a scalar, complex, or matrix.

Syntax

R = isfloat(var)

Inputs

var
Input that needs to checked if it is a float.
Type: any input

Outputs

R
Numerical equivalent true/false.

Example

isfloat example:

R = isfloat(pi)
R = 1