Download LME for Pocket PC User Manual

Transcript
LME Reference — miscellaneous functions
97
Examples
info
LME 4.5
info b
abs
acos
acosh
(etc.)
info v
ans (1x1 complex)
vars = info(’v’);
dumpvar(vars)
{struct(’name’,’ans’, ...
’defined’,true), ...
struct(’name’,’vars’, ...
’defined’,false)}
See also
inmem, which, exist
inline
Creation of inline function.
Syntax
fun
fun
fun
fun
fun
=
=
=
=
=
inline(funstr)
inline(expr)
inline(expr, arg1, ...)
inline(funstr, param)
inline(expr, arg1, ..., paramstruct)
Description
Inline function are LME objects which can be evaluated to give a result
as a function of their input arguments. Contrary to functions declared
with the function keyword, inline functions can be assigned to variables, passed as arguments, and built dynamically. Evaluating them
with feval is faster than using eval with a string, because they are
compiled only once to an intermediate code. They can also be used
as the argument of functions such as fzero and fmin.
inline(funstr) returns an inline function whose source code is
funstr. Input argument funstr follows the same syntax as a plain
function. The function name is ignored.