Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
Note de l’éditeur : This file was selected as MATLAB Central Pick of the Week
This set of files enables working more easily with functions of functions for concise and powerful code.
A few highlights of this way of working:
* Map multiple inputs to multiple functions and assign multiple outputs with a single line.
* Use conditionals (like "if"), loops, and recursion in anonymous functions.
A document with derivations and examples of these functions is included. See the readme.txt. Also, each function contains a 'help' entry with examples.
This submission requires strong familiarity with function handles and anonymous functions. If those aren't familiar terms, check the documentation first!
Citation pour cette source
Tucker McClure (2026). Functional Programming Constructs (https://fr.mathworks.com/matlabcentral/fileexchange/39735-functional-programming-constructs), MATLAB Central File Exchange. Extrait(e) le .
Informations générales
- Version 1.2.0.1 (52,2 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.2.0.1 | Updated license |
||
| 1.2.0.0 | The 'wrap' function returned all output arguments up to the highest selected. It now "wraps up" only the specifically requested arguments. (Thanks Harald.) |
||
| 1.1.0.0 | Fixed iif to accept function handles for conditions. |
||
| 1.0.0.0 |
