From bug-request at octave dot org Thu Dec 8 16:11:03 2005 Subject: Output arguments of system command are reversed relative to Matlab From: Quentin Spencer To: bug at octave dot org Date: Thu, 08 Dec 2005 16:06:36 -0600 The subject says it all. Quoting from the Matlab help: [status,result] = SYSTEM('command') calls upon the operating system to execute the given command. Quotimg from the Octave help: The `system' function can return two values. The first is any output from the command that was written to the standard output stream, and the second is the output status of the command. I'll be the first to agree that the Matlab ordering makes less sense, but if we want to be compatible then they should be reversed in octave. -Quentin ------------------------------------------------------------- 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 -------------------------------------------------------------