Contents Previous Next Subchapters

Determining The Type Of An Expression
Syntax type(expression)
See Also logical , char , int , real , double , complex

Description
Returns a character row vector containing the type of an expression.

Example
The following table contains some expressions and their corresponding types
Expression Type
true "logical"
"a" "char"
1 "int"
1e0 "real"
1d0 "double"
1i0 "complex"
novalue "novalue"
function f "function"
Entering
     type(1e0)
returns
     real
Entering
     clear
     function f() begin
     end
     type(function f)
returns
     function