Reputation: 2061
i want to run a Matlab from commandline with arguments.
Like matlab -r test.m ARGV1 ARGV2 ARGV3
is there any possebility to do it like this ?
Greetz
Upvotes: 1
Views: 861
Reputation: 25160
If you invoke
$ matlab -r "test ARGV1 ARGV2 ARGV3"
That is equivalent to
>>test('ARGV1', 'ARGV2', 'ARGV3')
inside MATLAB.
Upvotes: 4