[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:how to parse function parameter in octave?
From: |
Muthiah Annamalai |
Subject: |
Re:how to parse function parameter in octave? |
Date: |
Fri, 29 Sep 2006 17:37:53 -0500 |
> Hi,
>
> I am trying to run the octave function in bash command. I can do such
> command in bash shell
>
> bash-3.00$ octave < test.m
>
> However, I need to pass a parameter in the function such as
>
> bash-3.00$ octave < test_need_parameter('filename')
>
> This will not work.
>
> How can I pass the parameter to the function in such situation.
>
> Thanks
>
> Frank
Hello Frank,
this might work, and can be seen from $octave --help
$ octave --eval "test_need_parameter('octave is cool')" -q
the -q stops the printing of license information, anyway
you must be knowing Octave is GPL'ed.
Cheers
Muthu