Roby
Roby

Reputation: 2061

Matlab ARGV from Commandline

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

Answers (1)

Edric
Edric

Reputation: 25160

If you invoke

$ matlab -r "test ARGV1 ARGV2 ARGV3"

That is equivalent to

>>test('ARGV1', 'ARGV2', 'ARGV3')

inside MATLAB.

Upvotes: 4

Related Questions