How to call m_file from another m_file????????
12 次查看(过去 30 天)
显示 更早的评论
hi i need to know how to call m_file from another m_file thank you
0 个评论
回答(1 个)
Walter Roberson
2012-4-28
Just put the name of the second m-file as a command in the first one (without the .m extension)
For example, in file1.m you could call file2.m by coding
file2
If file2.m contains a function, put the arguments on the lines:
file2(pi, 3:8, 'BoogieWoogie.wmv')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Adding custom doc 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!