help-octave
[Top][All Lists]
Advanced

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

using system() command for batch processing in octave


From: christoph
Subject: using system() command for batch processing in octave
Date: Fri, 24 Mar 2017 03:52:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0

Hello I'm new to Octave and was wondering if it is possible to do batch processing,

wonderful would be something like

first run
system(command -opt1 -in  -out1)
second run
system(command -opt2 -in  -out2)
.
.
.
system (command -optn -in -outn)

I tried

formatSpec = 'system("command -opt %14.11f %14.11f %14.11f %14.11f /..../..../FileIn.file /..../.../FileOut%d_%d.file")\n'

printf(formatSpec,list1,list2,for_operator3,for_operator4)

the command printed works well when I copy it to the command shell!

when I use:

printf("%s\n", nthargout (2, "system", "command"))

Command is working but how do I get my arguments in ??? As vectorization here is not possible! "command" needs to be string! but things like

d=["here stands my command string and its parameters "]

printf("%s\n", nthargout (2, "system", d))

doesn't work for me!

Why?

It would be so nice to manipulate d and every time I call printf("%s\n", nthargout (2, "system", d)) d will be parsed inserted and the command executed.

this works perfectly in r !

Is there something similar in octave?

Thanks chris!














reply via email to

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