How to know which m-file run?

2 Ansichten (letzte 30 Tage)
Leotsing
Leotsing am 17 Jun. 2016
Kommentiert: Leotsing am 17 Jun. 2016
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?

Akzeptierte Antwort

Shameer Parmar
Shameer Parmar am 17 Jun. 2016
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.
  1 Kommentar
Leotsing
Leotsing am 17 Jun. 2016
Thank you very much,your way-2 works for me!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

KSSV
KSSV am 17 Jun. 2016
There would be a command history dialogue in matlab...you can know from here what happened so far....
  1 Kommentar
Leotsing
Leotsing am 17 Jun. 2016
thank you very much for your help

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Scope Variables and Generate Names finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by