From help-request at octave dot org Wed Jan 26 06:39:24 2005 Subject: Some utility scripts From: Francesco Potorti` To: Octave users list Date: Wed, 26 Jan 2005 13:40:54 +0100 ===File /usr/local/bin/compute============================== #! /usr/bin/octave -qf disp(eval(argv{1})) ============================================================ ===File /usr/local/bin/apply================================ #! /usr/bin/octave -qf disp(eval([argv{1} "(load('" argv{2} "'))"])) ============================================================ pot at pot:~/vbrsr$ cat /tmp/aa 5 6 7 pot at pot:~/vbrsr$ apply mean /tmp/aa 6 pot at pot:~/vbrsr$ apply std /tmp/aa 1 pot at pot:~/vbrsr$ apply sqrt /tmp/aa 2.2361 2.4495 2.6458 pot at pot:~/vbrsr$ compute "sqrt(2)" 1.4142 -- Francesco Potort́ (ricercatore) Voice: +39 050 315 3058 (op.2111) ISTI - Area della ricerca CNR Fax: +39 050 313 8091 via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti dot cnr dot it Web: http://fly.isti.cnr.it/ Key: fly.isti.cnr.it/public.key ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------