I am trying to run a function in octave from the command line. The function is currently run like so:
octave --silent --persist --eval 'function(input arguments)'
function.m contains a plot command. When I invoke octave with the above command line parameters, the plot does show but octave enters into its interactive mode. My question is:
Is there any way to get octave to display the plot without entering the interactive mode when it is invoked from the command line?
AFAIK, the plot window is a child process of octave and therefor can only be displayed when octave is running. Even if you plot something from the “interactive” mode leave the plot open and close octave, the plot will also disappear.
What you could do is to plot to some output file like posted here: