help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automate print command on mac?


From: rs-232
Subject: Automate print command on mac?
Date: Tue, 22 Dec 2009 08:38:41 -0800 (PST)

Hi all, I need to automatically plot multiple separate arrays, and print them
in a specific resolution. I can get octave to plot and print my arrays, but
when I try to automate this by putting the process in a function and
replacing the filename with an argument, octave saves the file as the
argument name rather than its value and will overwrite the same file in
subsequent iterations.

Any ideas?

I have included my incredibly basic function:


function y = testr2( arg0 )
        start = 0
        finish = 44100
        y = wavread ("sound.wav", [start, finish]);
        plot (y)
        print -dpng "-S23215,500" arg0
        arg0
        y = 0
endfunction 
-- 
View this message in context: 
http://old.nabble.com/Automate-print-command-on-mac--tp26890892p26890892.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]