tags:

views:

54

answers:

2

Say that I have a script myScript.m, I know I can do the following from shell:

octave -q myScript.m

and it will run the script.

However, what if I have a function myFunction.m, which takes in a string:

can I do?

octave -q myFunction('myString')

???

Thanks a lot in advance,

A: 

whoops, i found out about the --eval option.

CZ
A: 

whoops i also learned about the argv command.

CZ