EXECIN

版本 1.1.0.1 (1.7 KB) 作者: Jiro Doke
Executes functions and scripts not in the path.
2.0K 次下载
更新时间 2016/9/1

查看许可证

EXECIN Execute a function or script in different directory.

EXECIN(FUNCNAME) will execute function FUNCNAME, which is a string that includes the full path of the function.

[Y1, Y2, ...] = EXECIN(FUNCNAME, X1, X2, ...) allows input and output arguments that are normally allowed by the function FUNCNAME.

Example:
[s, out] = execin('C:\mywork dir\testfunction.m', x1, x2);

This is quite similar to Brett Shoelson's EXTERNALFCN. I didn't realize it until I made it. But there are some advantages such as ability to call functions without output arguments, and assigning outputs in the caller workspace (not base).

引用格式

Jiro Doke (2025). EXECIN (https://www.mathworks.com/matlabcentral/fileexchange/8518-execin), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 File Operations 的更多信息
致谢

参考作品: externalfcn

Community Treasure Hunt

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

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

Updated license

1.1.0.0

License update

1.0.0.0

Added functionality of executing scripts.