Execute default function of a MATLAB installation

版本 1.1.0.0 (2.2 KB) 作者: Michael Völker
Execute the default function available as an m-file in MATLAB's installation directory.
212.0 次下载
更新时间 2012/9/6

查看许可证

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.

引用格式

Michael Völker (2024). Execute default function of a MATLAB installation (https://www.mathworks.com/matlabcentral/fileexchange/38012-execute-default-function-of-a-matlab-installation), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Updated description.

1.0.0.0