How can I code for something which is running?
显示 更早的评论
I want to programme in such a way that if some script file is run then that function should be called. LIke I coded if run(file.m)=1 do something end But this does not work
采纳的回答
更多回答(1 个)
Julia
2014-12-15
0 个投票
Hi,
How about this:
You can use strcmp() to check if the last file run was your file.m
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!