How to make autorun and auto exit
2 次查看(过去 30 天)
显示 更早的评论
Dear all,
I have 2 file.m ..Let say A.m and B.m..first i need to run the A.m file and at the middle running, i need load and run the B.m file.After B.m file finish, i want to autoexit the B.m file and continue with processing in A.m file untill end.. .so, how i can do like that? What the command??
0 个评论
回答(2 个)
Andreas Goser
2011-12-20
Just call the B file at the line of file A where you need it. If the file name is my_script.m, the command is
my_script
1 个评论
Robert Cumming
2011-12-20
i would advise you use functions - it will help in the long run and make bug fixing easier.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!