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.
If you want to pass parameters to it, enclose them in parentheses.
angle=.78; bias=.001;
myOtherScript(angle, bias)
If you want to return parameters from it, do it like this:
adjustedAngle = myOtherScript(angle, bias);
Or multiple return values:
[status adjustedAngle] = myOtherScript(angle, bias);
If you don't want the return values immediately reflected to the command window (maybe this call is in a big loop and you're going to plot all the values later), be sure to put a semicolon after the call statement.