Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting octave to plot when invoking a function from the command line

Tags:

plot

octave

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?

like image 752
Sriram Avatar asked Jul 27 '11 10:07

Sriram


1 Answers

Just use pause after your plotting functions

like image 129
psihodelia Avatar answered Sep 19 '22 07:09

psihodelia