CELP (CELl Processing) is a functional programming package for Matlab.
It is often better to use FP instead of loops:
- it's more compact;
- it's more clear.
Matlab has all prerequisites to implement a Lisp-like FP:
- anonymous functions, @'s <-> lambdas;
- FEVAL <-> FUNCALL, EVAL, APPLY;
- cell arrays <-> lists.
Matlab has also several peculiarities:
- cell arrays may...