I have two matlab script files .m (not function files) and if I want to call another script in my current script, which command should I use? Thank you.
As you said, if your script2 is in the same folder as your script1, you can call it with its name. script2
script2
If it is in another folder, you can use 'run'. run("../path/to/your/script/script2")
run("../path/to/your/script/script2")