I want to run commands like pdflatex and cp from an octave script. Is there a way to do that?

link|improve this question
feedback

1 Answer

up vote 3 down vote accepted

Use the function system(<command>) to call a shell command from Octave. Replace <command> with the command you want to execute. (Note that MATLAB allows a shell command to be executed by prefixing it with an exclamation mark !, but Octave does not support this syntax. See this Wikibooks page for more information.)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.