"computer" command not compatible with Matlab
Frederick_Umminger at playstation.sony.com
Frederick_Umminger at playstation.sony.com
Thu Feb 5 14:12:49 CST 2009
Bug: The "computer" command behaves differently in Octave compared to
Matlab. This breaks .m files that rely on it.
Version: 3.0.3, Windows 32-bit
Steps to reproduce:
> computer()
ans = i686-pc-msdosmsvc
Should return:
ans = PCWIN
> help computer
-- Function File: [C, MAXSIZE, ENDIAN] = computer ()
Print or return a string of the form CPU-VENDOR-OS that
identifies the kind of computer Octave is running on. If invoked
with an output argument, the value is returned instead of
printed. For example,
computer ()
-| i586-pc-linux-gnu
x = computer ()
=> x = "i586-pc-linux-gnu"
If two output arguments are requested, also return the maximum
number of elements for an array.
If three output arguments are requested, also return the byte
order of the current system as a character (`"B"' for big-endian
or `"L"' for little-endian).
Additional help for built-in functions and operators is
available in the on-line version of the manual. Use the command
`doc <topic>' to search the manual index.
Help and information about Octave is also available on the WWW
at http://www.octave.org and via the help at octave.org
mailing list.
Compare this to the Matlab documentation at
http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/computer.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090205/509e974a/attachment.html
More information about the Bug-octave
mailing list