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
Sometimes, we might want to "overload" a MATLAB method to change the behaviour of MATLAB.
It is then hard to call the default function again. The function "builtin" can only execute built-in, non-m-file functions.
This submission aims to mimic builtin() for m-files shipped with the MATLAB installation.
[y1, ..., yn] = defaultFunc(func, x1, ..., xn)
Calls the first function "func", which is found in MATLAB's installation directory, even if you placed a function with the same name somewhere in your search path.
func may be a string or a function handle.
It will *not* work with built-in functions, i.e. those without an m-file.
Use builtin( func, x1, ..., xn) for that case.
A usecase for this function is shown in
http://www.mathworks.com/matlabcentral/fileexchange/37971
which was the reason to create this submission.
Citation pour cette source
Michael Völker (2026). Execute default function of a MATLAB installation (https://fr.mathworks.com/matlabcentral/fileexchange/38012-execute-default-function-of-a-matlab-installation), MATLAB Central File Exchange. Extrait(e) le .
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et MATLAB Answers
Informations générales
- Version 1.1.0.0 (2,24 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.1.0.0 | Updated description. |
||
| 1.0.0.0 |
