which
Gives a brief description on the origin of a function.
Syntax
which('A')
Inputs
- A
- Function name.
Outputs
This function returns no values.
Examples
Simple which
example:
which('sqrt')
'sqrt' is a built-in function
If a variable you made matches a built-in function, which still
indicates that the given variable is a built-in
function:
sqrt = 5
which('sqrt')
'sqrt' is a built-in function
User-defined function
example:
function z=sqrt(a)
z=a/2;
end
which('sqrt')
'sqrt' is a user function