I have a octave script (script.m) file with the following code:
if length(argv()) > 0
s = argv(){1};
else
s = "";
In octave command window, pwd is set to the script directory. From command window, how can I run script.m with one, two or no arguments?
I am using Octave (GUI) in windows.