# type

Displays the type of input given.

## Syntax

R = type('A', ...)

R = type('-q', 'A', ...)

## Inputs

`A`- Any operator, keyword, function, file, or defined variable(s).
`-q`(optional)- Indicates a quiet mode where header information is not printed.

## Outputs

- R
- The element(s) of R will contain the description/value
of the variable(s),
`A`, that are defined in the current session of the application. If`A`is a file, the elements of R will have the contents of`A`.

## Examples

Simple example with a built-in
function:

`R = type('sqrt')`

`
R =
{
[1,1] 'sqrt' is a built-in function
}
`

User-defined variable
example:

```
x=5
R = type('x')
```

`
R =
{
[1,1] 'x' is a variable
x = 5
}
`

Example with a user-defined
function:

```
function z=sqrt(a)
z = abs(a);
end
% type still recognizes the built-in function
R = type('sqrt')
```

`R =
{
[1,1] 'sqrt' is a built-in function
}`