i.mehrzad
August 19th, 2008, 09:14 PM
Can i type a Octave script in a editor and then execute it in the octave terminal. How do you do it, what is the extension?
cszikszoy
August 20th, 2008, 06:10 AM
I'm not sure exactly what you mean, but if you add this line to the top of your octave script:
#! /bin/octave -qf
you can execute the script without invoking octave. It basically just becomes the same thing as a python or shell program.
You can also access command line arguments from your script using the variable argv().
That should give you a good start to do some more research.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.