MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   在脚本中调用Matlab脚本 (https://www.labfans.com/bbs/showthread.php?t=26522)

poster 2019-12-14 20:13

在脚本中调用Matlab脚本
 
我有两个Matlab脚本文件.m(不是功能文件),如果要在当前脚本中调用另一个脚本,应该使用哪个命令?谢谢。



[B]回答:[/B]

我找到了答案。

只需在另一个脚本中命名该脚本即可:

myOtherScript 如果愿意,可以使用run('myOtherScript'),但最终会在内部完成与直接命名相同的操作;但是,您可能会喜欢强调它给出了被提及的脚本。



[url=https://stackoverflow.com/questions/5226840]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 10:57

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.