MATLAB: How to know which m-file run

m-file

I ran some code(suppose I do not know the content),which makes to run one or some .m-file(s),how can I know which m-file has been run?

Best Answer

1. Check from command History of matlab.
OR
2. In all that files, open and put command "disp('filename')". so that it will display in the filename in command window.