home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / octave-1.1.1-src.lha / octave-1.1.1 / doc / FAQ.info < prev    next >
Encoding:
GNU Info File  |  1995-01-14  |  28.5 KB  |  767 lines

  1. This is Info file FAQ.info, produced by Makeinfo-1.55 from the input
  2. file FAQ.texi.
  3.  
  4. 
  5. File: FAQ.info,  Node: Top,  Next: What is Octave?,  Prev: (dir),  Up: (dir)
  6.  
  7.  
  8.  
  9. Preface
  10. *******
  11.  
  12.    This is a list of frequently asked questions (FAQ) for Octave users.
  13.  
  14.    Some information in this FAQ was developed for earlier versions of
  15. Octave and may now be obsolete.
  16.  
  17.    I'm looking for new questions (*with* answers), better answers, or
  18. both.  Please send suggestions to bug-octave@che.utexas.edu.  If you
  19. have general questions about Octave, or need help for something that is
  20. not covered by the FAQ, please use the help-octave@che.utexas.edu
  21. mailing list.
  22.  
  23.    This FAQ is intended to supplement, not replace, the Octave manual.
  24. Before posting a question to the hlpe-octave mailing list, you should
  25. first check to see if the topic is covered in the manual.
  26.  
  27. * Menu:
  28.  
  29. * What is Octave?::
  30. * Version 1.1.0::
  31. * Octave Features::
  32. * Documentation::
  33. * Getting Octave::
  34. * Installation::
  35. * Common problems::
  36. * Getting additional help::
  37. * Bug reports::
  38. * MATLAB compatibility::
  39. * Index::
  40.  
  41. 
  42. File: FAQ.info,  Node: What is Octave?,  Next: Version 1.1.0,  Prev: Top,  Up: Top
  43.  
  44. What is Octave?
  45. ***************
  46.  
  47.    Octave is a high-level interactive language, primarily intended for
  48. numerical computations that is mostly compatible with MATLAB.(1)
  49.  
  50.    Octave can do arithmetic for real and complex scalars and matrices,
  51. solve sets of nonlinear algebraic equations, integrate functions over
  52. finite and infinite intervals, and integrate systems of ordinary
  53. differential and differential-algebraic equations.
  54.  
  55.    Octave uses the GNU readline library to handle reading and editing
  56. input.  By default, the line editing commands are similar to the cursor
  57. movement commands used by GNU Emacs, and a vi-style line editing
  58. interface is also available.  At the end of each session, the command
  59. history is saved, so that commands entered during previous sessions are
  60. not lost.
  61.  
  62.    The Octave distribution includes a 200+ page Texinfo manual.  Access
  63. to the complete text of the manual is available via the help command at
  64. the Octave prompt.
  65.  
  66.    Two and three dimensional plotting is fully supported using gnuplot.
  67.  
  68.    The underlying numerical solvers are currently standard Fortran ones
  69. like Lapack, Linpack, Odepack, the Blas, etc., packaged in a library of
  70. C++ classes.  If possible, the Fortran subroutines are compiled with
  71. the system's Fortran compiler, and called directly from the C++
  72. functions.  If that's not possible, you can still compile Octave if you
  73. have the free Fortran to C translator f2c.
  74.  
  75.    Octave is also free software; you can redistribute it and/or modify
  76. it under the terms of the GNU General Public License as published by the
  77. Free Software Foundation.
  78.  
  79.    ---------- Footnotes ----------
  80.  
  81.    (1)  MATLAB is a registered trademark of The MathWorks, Inc.
  82.  
  83. 
  84. File: FAQ.info,  Node: Version 1.1.0,  Next: Octave Features,  Prev: What is Octave?,  Up: Top
  85.  
  86. What's new in version 1.1.0 of Octave
  87. *************************************
  88.  
  89.    The long-awaited version 1.1.0 of Octave has now been released.  Many
  90. bugs have been fixed and lots of new features added.  Octave is now much
  91. more compatible with MATLAB.
  92.  
  93.    Version 1.1.0 fixes many bugs, but as with any "x.y.0" release there
  94. will be a few glitches.  You can expect a 1.1.1 shortly.  You can help
  95. contribute to the quality of Octave by trying it out and submitting bug
  96. reports where you find them.
  97.  
  98.    A list of user-visible changes in recent versions of Octave may be
  99. found in the file NEWS, distributed in both source and binary releases
  100. of Octave.
  101.  
  102. 
  103. File: FAQ.info,  Node: Octave Features,  Next: Documentation,  Prev: Version 1.1.0,  Up: Top
  104.  
  105. What features are unique to Octave?
  106. ***********************************
  107.  
  108. * Menu:
  109.  
  110. * Command and variable name completion::
  111. * Command history::
  112. * Data structures::
  113. * Short-circuit boolean operators::
  114. * Increment and decrement operators::
  115. * Unwind-protect::
  116. * Variable-length argument lists::
  117. * Variable-length return lists::
  118. * Built-in ODE and DAE solvers::
  119.  
  120. 
  121. File: FAQ.info,  Node: Command and variable name completion,  Next: Command history,  Prev: Octave Features,  Up: Octave Features
  122.  
  123. Command and variable name completion
  124. ====================================
  125.  
  126.    Typing a TAB character (ASCII code 9) on the command line causes
  127. Octave to attempt to complete variable, function, and file names.
  128. Octave uses the text before the cursor as the initial portion of the
  129. name to complete.
  130.  
  131.    For example, if you type `fu' followed by TAB at the Octave prompt,
  132. Octave will complete the rest of the name `function' on the command
  133. line (unless you have other variables or functions defined that begin
  134. with the characters `fu').  If there is more than one possible
  135. completion, Octave will ring the terminal bell to let you know that your
  136. initial sequence of characters is not enough to specify a unique name.
  137. To complete the name, you may either edit the initial character sequence
  138. (usually adding more characters until completion is possible) or type
  139. another TAB to cause Octave to display the list of possible completions.
  140.  
  141. 
  142. File: FAQ.info,  Node: Command history,  Next: Data structures,  Prev: Command and variable name completion,  Up: Octave Features
  143.  
  144. Command history
  145. ===============
  146.  
  147.    When running interactively, Octave saves the commands you type in an
  148. internal buffer so that you can recall and edit them.  Emacs and vi
  149. editing modes are available with Emacs keybindings enabled by default.
  150.  
  151.    When Octave exits, the current command history is saved to the file
  152. `~/.octave_hist', and each time Octave starts, it inserts the contents
  153. of the `~/.octave_hist' file in the history list so that it is easy to
  154. begin working where you left off.
  155.  
  156. 
  157. File: FAQ.info,  Node: Data structures,  Next: Short-circuit boolean operators,  Prev: Command history,  Up: Octave Features
  158.  
  159. Data structures
  160. ===============
  161.  
  162.    Octave includes a limited amount of support for organizing data in
  163. structures.  The current implementation uses an associative array with
  164. indices limited to strings, but the syntax is more like C-style
  165. structures.  Here are some examples of using data structures in Octave.
  166.  
  167.    * Elements of structures can be of any value type.
  168.  
  169.           octave:1> x.a = 1; x.b = [1, 2; 3, 4]; x.c = "string";
  170.           octave:2> x.a
  171.           x.a = 1
  172.           octave:3> x.b
  173.           x.b =
  174.           
  175.             1  2
  176.             3  4
  177.           
  178.           octave:4> x.c
  179.           x.c = string
  180.  
  181.    * Structures may be copied.
  182.  
  183.           octave:1> y = x
  184.           y =
  185.           
  186.           <structure: a b c>
  187.  
  188.    * Structure elements may reference other structures.
  189.  
  190.           octave:1> x.b.d = 3
  191.           x.b.d = 3
  192.           octave:2> x.b
  193.           x.b =
  194.           
  195.           <structure: d>
  196.           
  197.           octave:3> x.b.d
  198.           x.b.d = 3
  199.  
  200.    * Functions can return structures.
  201.  
  202.           octave:1> function y = f (x)
  203.           > y.re = real (x);
  204.           > y.im = imag (x);
  205.           > endfunction
  206.           
  207.           octave:2> f (rand + rand*I);
  208.           ans =
  209.           
  210.           <structure: im re>
  211.           
  212.           octave:3> ans.im, ans.re
  213.           ans.im = 0.93411
  214.           ans.re = 0.56234
  215.  
  216.    * Function return lists can include structure elements, and they may
  217.      be indexed like any other variable.
  218.  
  219.           octave:1> [x.u, x.s(2:3,2:3), x.v] = svd ([1, 2; 3, 4])
  220.           x.u =
  221.           
  222.             -0.40455  -0.91451
  223.             -0.91451   0.40455
  224.           
  225.           x.s =
  226.           
  227.             0.00000  0.00000  0.00000
  228.             0.00000  5.46499  0.00000
  229.             0.00000  0.00000  0.36597
  230.           
  231.           x.v =
  232.           
  233.             -0.57605   0.81742
  234.             -0.81742  -0.57605
  235.           
  236.           octave:8> x
  237.           x =
  238.           
  239.           <structure: s u v>
  240.  
  241.    * You can also use the function `is_struct' to determine whether a
  242.      given value is a data structure.  For example
  243.  
  244.           is_struct (x)
  245.  
  246.      returns 1 if the value of the variable X is a data structure.
  247.  
  248.    This feature should be considered experimental, but you should
  249. expect it to work.  Suggestions for ways to improve it are welcome.
  250.  
  251. 
  252. File: FAQ.info,  Node: Short-circuit boolean operators,  Next: Increment and decrement operators,  Prev: Data structures,  Up: Octave Features
  253.  
  254. Short-circuit boolean operators
  255. ===============================
  256.  
  257.    Octave's `&&' and `||' logical operators are evaluated in a
  258. short-circuit fashion (like the corresponding operators in the C
  259. language) and work differently than the element by element operators
  260. `&' and `|'.
  261.  
  262. 
  263. File: FAQ.info,  Node: Increment and decrement operators,  Next: Unwind-protect,  Prev: Short-circuit boolean operators,  Up: Octave Features
  264.  
  265. Increment and decrement operators
  266. =================================
  267.  
  268.    Octave includes the C-like increment and decrement operators `++'
  269. and `--' in both their prefix and postfix forms.
  270.  
  271.    For example, to pre-increment the variable X, you would write `++X'.
  272. This would add one to X and then return the new value of X as the
  273. result of the expression.  It is exactly the same as the expression `X
  274. = X + 1'.
  275.  
  276.    To post-increment a variable X, you would write `X++'.  This adds
  277. one to the variable X, but returns the value that X had prior to
  278. incrementing it.  For example, if X is equal to 2, the result of the
  279. expression `X++' is 2, and the new value of X is 3.
  280.  
  281.    For matrix and vector arguments, the increment and decrement
  282. operators work on each element of the operand.
  283.  
  284.    It is not currently possible to increment index expressions.  For
  285. example, you might expect that the expression `V(4)++' would increment
  286. the fourth element of the vector V, but instead it results in a parse
  287. error.  This problem may be fixed in a future release of Octave.
  288.  
  289. 
  290. File: FAQ.info,  Node: Unwind-protect,  Next: Variable-length argument lists,  Prev: Increment and decrement operators,  Up: Octave Features
  291.  
  292. Unwind-protect
  293. ==============
  294.  
  295.    Octave supports a limited form of exception handling modelled after
  296. the unwind-protect form of Lisp.  The general form of an
  297. `unwind_protect' block looks like this:
  298.  
  299.      unwind_protect
  300.        BODY
  301.      unwind_protect_cleanup
  302.        CLEANUP
  303.      end_unwind_protect
  304.  
  305. Where BODY and CLEANUP are both optional and may contain any Octave
  306. expressions or commands.  The statements in CLEANUP are guaranteed to
  307. be executed regardless of how control exits BODY.
  308.  
  309.    The `unwind_protect' statement is often used to reliably restore the
  310. values of global variables that need to be temporarily changed.
  311.  
  312. 
  313. File: FAQ.info,  Node: Variable-length argument lists,  Next: Variable-length return lists,  Prev: Unwind-protect,  Up: Octave Features
  314.  
  315. Variable-length argument lists
  316. ==============================
  317.  
  318.    Octave has a real mechanism for handling functions that take an
  319. unspecified number of arguments, so it is no longer necessary to place
  320. an upper bound on the number of optional arguments that a function can
  321. accept.
  322.  
  323.    Here is an example of a function that uses the new syntax to print a
  324. header followed by an unspecified number of values:
  325.  
  326.      function foo (heading, ...)
  327.        disp (heading);
  328.        va_start ();
  329.        while (--nargin)
  330.          disp (va_arg ());
  331.        endwhile
  332.      endfunction
  333.  
  334.    Calling `va_start()' positions an internal pointer to the first
  335. unnamed argument and allows you to cycle through the arguments more than
  336. once.  It is not necessary to call `va_start()' if you do not plan to
  337. cycle through the arguments more than once.
  338.  
  339.    The function `va_arg()' returns the value of the next available
  340. argument and moves the internal pointer to the next argument.  It is an
  341. error to call `va_arg()' when there are no more arguments available.
  342.  
  343.    It is also possible to use the keyword ALL_VA_ARGS to pass all
  344. unnamed arguments to another function.
  345.  
  346. 
  347. File: FAQ.info,  Node: Variable-length return lists,  Next: Built-in ODE and DAE solvers,  Prev: Variable-length argument lists,  Up: Octave Features
  348.  
  349. Variable-length return lists
  350. ============================
  351.  
  352.    Octave also has a real mechanism for handling functions that return
  353. an unspecified number of values, so it is no longer necessary to place
  354. an upper bound on the number of outputs that a function can produce.
  355.  
  356.    Here is an example of a function that uses the new syntax to produce
  357. `N' values:
  358.  
  359.      function [...] = foo (n)
  360.        for i = 1:n
  361.          vr_val (i);
  362.        endfor
  363.      endfunction
  364.  
  365. 
  366. File: FAQ.info,  Node: Built-in ODE and DAE solvers,  Prev: Variable-length return lists,  Up: Octave Features
  367.  
  368. Built-in ODE and DAE solvers
  369. ============================
  370.  
  371.    Octave includes LSODE and DASSL for solving systems of stiff
  372. differential and differential-algebraic equations.  These functions are
  373. built in to the interpreter.
  374.  
  375. 
  376. File: FAQ.info,  Node: Documentation,  Next: Getting Octave,  Prev: Octave Features,  Up: Top
  377.  
  378. What documentation exists for Octave?
  379. *************************************
  380.  
  381.    The Octave distribution includes a 220+ page manual that is also
  382. distributed under the terms of the GNU GPL.
  383.  
  384.    The Octave manual is intended to be a complete reference for Octave,
  385. but it is not a finished document.  If you have problems using it, or
  386. find that some topic is not adequately explained, indexed, or
  387. cross-referenced, please send a bug report to bug-octave@che.utexas.edu.
  388.  
  389.    Because the Octave manual is written using Texinfo, the complete
  390. text of the Octave manual is also available on line using the GNU Info
  391. system via the GNU Emacs, info, or xinfo programs, or by using the
  392. `help -i' command to start the GNU info browser directly from the
  393. Octave prompt.
  394.  
  395.    It is also possible to use WWW browsers such as Mosaic to read the
  396. Octave manual (or any other Info file) by using Roar Smith's info2www
  397. program to convert GNU Info files to HTML.  The source for info2www is
  398. available via anonymous ftp from ftp.che.utexas.edu in the directory
  399. `/pub/www'.
  400.  
  401. 
  402. File: FAQ.info,  Node: Getting Octave,  Next: Installation,  Prev: Documentation,  Up: Top
  403.  
  404. Obtaining Source Code
  405. *********************
  406.  
  407. * Menu:
  408.  
  409. * Octave for Unix::
  410. * Octave for other platforms::
  411. * latest versions::
  412.  
  413. 
  414. File: FAQ.info,  Node: Octave for Unix,  Next: Octave for other platforms,  Prev: Getting Octave,  Up: Getting Octave
  415.  
  416. How do I get a copy of Octave for Unix?
  417. =======================================
  418.  
  419.    You can get Octave from a friend who has a copy, by anonymous FTP,
  420. or by ordering a tape or CD-ROM from the Free Software Foundation (FSF).
  421.  
  422.    Octave was not developed by the FSF, but the FSF does distribute
  423. Octave, and the developers of Octave support the efforts of the FSF by
  424. encouraging users of Octave to order Octave on tape or CD directly from
  425. the FSF.
  426.  
  427.    The FSF is a nonprofit organization that distributes software and
  428. manuals to raise funds for more GNU development.  Buying a tape or CD
  429. from the FSF contributes directly to paying staff to develop GNU
  430. software.  CD-ROMs cost $400 if an organization is buying, or $100 if an
  431. individual is buying.  Tapes cost around $200 depending on media type.
  432.  
  433.    The FSF only makes new CD releases a few times a year, so if you are
  434. interested specifically in Octave, I recommend asking for the latest
  435. release on tape.
  436.  
  437.    For more information about ordering from the FSF, contact
  438. gnu@prep.ai.mit.edu, phone (617) 876-3296 or anonymous ftp file
  439. `/pub/gnu/GNUinfo/ORDERS' from prep.ai.mit.edu or one of the sites
  440. listed below.
  441.  
  442.    If you are on the Internet, you can copy the latest distribution
  443. version of Octave from the file `/pub/octave/octave-M.N.tar.gz', on the
  444. host `ftp.che.utexas.edu'.  This tar file has been compressed with GNU
  445. gzip, so be sure to use binary mode for the transfer.  `M' and `N'
  446. stand for version numbers; look at a listing of the directory through
  447. ftp to see what version is available.  After you unpack the
  448. distribution, be sure to look at the files `README' and `INSTALL'.
  449.  
  450.    Binaries for several popular systems are also available.  If you
  451. would like help out by making binaries available for other systems,
  452. please contact bug-octave@che.utexas.edu.
  453.  
  454.    A list of user-visible changes since the last release is available in
  455. the file `NEWS'.  The file `ChangeLog' in the source distribution
  456. contains a more detailed record of changes made since the last release.
  457.  
  458. 
  459. File: FAQ.info,  Node: Octave for other platforms,  Next: latest versions,  Prev: Octave for Unix,  Up: Getting Octave
  460.  
  461. How do I get a copy of Octave for (some other platform)?
  462. ========================================================
  463.  
  464.    Octave currently runs on Unix-like systems only.  It should be
  465. possible to make Octave work on other systems.  If you are interested
  466. in porting Octave to other systems, please contact
  467. bug-octave@che.utexas.edu.
  468.  
  469. 
  470. File: FAQ.info,  Node: latest versions,  Prev: Octave for other platforms,  Up: Getting Octave
  471.  
  472. What is the latest version of Octave
  473. ====================================
  474.  
  475.    The latest version of Octave is 1.1.0, released January 1995.
  476.  
  477. 
  478. File: FAQ.info,  Node: Installation,  Next: Common problems,  Prev: Getting Octave,  Up: Top
  479.  
  480. Installation Issues and Problems
  481. ********************************
  482.  
  483.    Octave requires approximately 50MB of disk storage to unpack and
  484. install (significantly less if you don't compile with debugging
  485. symbols).
  486.  
  487.    Octave has been compiled and tested with g++ and libg++ on a
  488. SPARCstation 2 running SunOS 4.1.2, an IBM RS/6000 running AIX 3.2.5,
  489. DEC Alpha systems running OSF/1 1.3 and 3.0, a DECstation 5000/240
  490. running Ultrix 4.2a, and i486 systems running Linux.  It should work on
  491. most other Unix systems that have a working port of g++ and libg++.
  492.  
  493. * Menu:
  494.  
  495. * What else do I need?::
  496. * Other C++ compilers?::
  497.  
  498. 
  499. File: FAQ.info,  Node: What else do I need?,  Next: Other C++ compilers?,  Prev: Installation,  Up: Installation
  500.  
  501. What else do I need?
  502. ====================
  503.  
  504.    In order to build Octave, you will need a current version of g++,
  505. libg++, and GNU make.  If you don't have these tools, you can get them
  506. from many anonymous ftp archives, including ftp.che.utexas.edu,
  507. ftp.uu.net, prep.ai.mit.edu, and wuarchive.wustl.edu, or by writing to
  508. the FSF at 675 Mass Ave, Cambridge, MA 02139, USA.
  509.  
  510. 
  511. File: FAQ.info,  Node: Other C++ compilers?,  Prev: What else do I need?,  Up: Installation
  512.  
  513. Can I compile Octave with another C++ compiler?
  514. ===============================================
  515.  
  516.    Currently, Octave can only be compiled with the GNU C++ compiler.  It
  517. would be nice to make it possible to compile Octave with other C++
  518. compilers, but the maintainers do not have sufficient time to devote to
  519. this.  If you are interested in working to make Octave portable to other
  520. compilers, please contact bug-octave@che.utexas.edu.
  521.  
  522. 
  523. File: FAQ.info,  Node: Common problems,  Next: Getting additional help,  Prev: Installation,  Up: Top
  524.  
  525. Common problems
  526. ***************
  527.  
  528.    This list is probably far too short.  Feel free to suggest additional
  529. questions (preferably with answers!)
  530.  
  531.    * Octave takes a long time to find symbols.
  532.  
  533.      Octave is probably spending this time recursively searching
  534.      directories for function files.  Check the value of your LOADPATH.
  535.      For those elements that end in `//', do any name a very large
  536.      directory tree?  Does it contain directories that have a mixture
  537.      of files and directories?  In order for the recursive directory
  538.      searching code to work efficiently, directories that are to be
  539.      searched recursively should have either function files only, or
  540.      subdirectories only, but not a mixture of both.  Check to make
  541.      sure that Octave's standard set of function files is installed
  542.      this way.
  543.  
  544. 
  545. File: FAQ.info,  Node: Getting additional help,  Next: Bug reports,  Prev: Common problems,  Up: Top
  546.  
  547. Getting additional help
  548. ***********************
  549.  
  550.    The mailing list
  551.  
  552.      help-octave@che.utexas.edu
  553.  
  554. is available for questions related to using, installing, and porting
  555. Octave that are not adequately answered by the Octave manual or by this
  556. document.
  557.  
  558.    If you would like to join the discussion and receive all messages
  559. sent to the list, please send a short note to
  560.  
  561.      help-octave-request@che.utexas.edu
  562.                  ^^^^^^^
  563.  
  564.    *Please do not* send requests to be added or removed from the the
  565. mailing list, or other administrative trivia to the list itself.
  566.  
  567.    An archive of old postings to the help-octave mailing list is
  568. maintained on ftp.che.utexas.edu in the directory
  569. `/pub/octave/MAILING-LISTS'.
  570.  
  571. 
  572. File: FAQ.info,  Node: Bug reports,  Next: MATLAB compatibility,  Prev: Getting additional help,  Up: Top
  573.  
  574. I think I have found a bug in Octave.
  575. *************************************
  576.  
  577.    "I think I have found a bug in Octave, but I'm not sure.  How do I
  578. know, and who should I tell?"
  579.  
  580.    First, see the section on bugs and bug reports in the Octave manual.
  581. The Octave manual is included in the Octave distribution.
  582.  
  583.    When you report a bug, make sure to describe the type of computer you
  584. are using, the version of the operating system it is running, and the
  585. version of Octave that you are using.  Also provide enough code so that
  586. the Octave maintainers can duplicate your bug.
  587.  
  588.    If you have Octave working at all, the easiest way to do this is to
  589. use the Octave function `bug_report'.  When you execute this function,
  590. Octave will prompt you for a subject and then invoke the editor on a
  591. file that already contains all the configuration information.  When you
  592. exit the editor, Octave will mail the bug report for you.
  593.  
  594.    If for some reason you cannot use Octave's `bug_report' function,
  595. mail your bug report to "bug-octave@che.utexas.edu".  Your message
  596. needs to include enough information to allow the maintainers of Octave
  597. to fix the bug.  Please read the section on bugs and bug reports in the
  598. Octave manual for a list of things that should be included in every bug
  599. report.
  600.  
  601. 
  602. File: FAQ.info,  Node: MATLAB compatibility,  Next: Index,  Prev: Bug reports,  Up: Top
  603.  
  604. Porting programs from MATLAB to Octave
  605. **************************************
  606.  
  607.    "I wrote some code for MATLAB, and I want to get it running under
  608. Octave.  Is there anything I should watch out for?"
  609.  
  610.    The differences between Octave and MATLAB typically fall into one of
  611. three categories:
  612.  
  613.   1. Irrelevant.
  614.  
  615.   2. Known differences, perhaps configurable with a user preference
  616.      variable.
  617.  
  618.   3. Unknown differences.
  619.  
  620.    The first category, irrelevant differences, do not affect
  621. computations and most likely do not affect the execution of function
  622. files.  Some examples are:
  623.  
  624.    When typing `help function', Octave displays the first set of
  625. comment lines *after* the function declaration, but MATLAB the first
  626. set of comment lines starting from the beginning of the file.
  627.  
  628.    The differences of the second category are usually because the
  629. authors of Octave decided on a better (subjective) implementation that
  630. the way MATLAB does it, and so introduced "user preference variables"
  631. so that you can customize Octave's behavior to be either
  632. MATLAB-compatible or to use Octave's new features.  To make Octave more
  633. MATLAB-compatible, put the following statements in your `~/.octaverc'
  634. file.  This is a partial list of the user preference variables that
  635. should be changed to get MATLAB-compatible behavior.  (It is partial
  636. because not all the differences are currently known, and when they
  637. become known, this document lags behind.)
  638.  
  639.        do_fortran_indexing = 'true';
  640.        treat_neg_dim_as_zero = 'true';
  641.        empty_list_elements_ok = 'true';
  642.        implicit_str_to_num_ok = 'true';
  643.        whitespace_in_literal_matrix = 'traditional';
  644.        prefer_zero_one_indexing = 'true';
  645.  
  646.    Some other known differences are:
  647.  
  648.    * String subscripting is not yet implemented in Octave.  For example,
  649.  
  650.           a = 'reknob';
  651.           a([6,1,5,3,2,4])
  652.  
  653.      returns the string `broken' in MATLAB, but generates an error in
  654.      Octave.  A future release of Octave will fix this along with
  655.      providing a much more complete and powerful set of functions for
  656.      manipulating strings.
  657.  
  658.    * The Octave plotting functions are mostly compatible with the ones
  659.      from MATLAB 3.x, but not from MATLAB 4.x.
  660.  
  661.    * The C-style I/O functions are not completely compatible.  It would
  662.      be useful for someone to explore the differences so that they
  663.      might be fixed, or at least noted in the manual.
  664.  
  665.    The third category of differences is (hopefully) shrinking.  If you
  666. find a difference between Octave behavior and MATLAB, then you should
  667. send a description of this difference (with code illustrating the
  668. difference, if possible) to bug-octave@che.utexas.edu.
  669.  
  670.    An archive of old postings to the Octave mailing lists is maintained
  671. on ftp.che.utexas.edu in the directory `/pub/octave/MAILING-LISTS'.
  672.  
  673. 
  674. File: FAQ.info,  Node: Index,  Prev: MATLAB compatibility,  Up: Top
  675.  
  676. Concept Index
  677. *************
  678.  
  679. * Menu:
  680.  
  681. * MATLAB compatibility:                 MATLAB compatibility.
  682. * Additional help:                      Getting additional help.
  683. * Argument lists, variable-length:      Variable-length argument lists.
  684. * Boolean operators, short-circuit:     Short-circuit boolean operators.
  685. * Bug in Octave, newly found:           Bug reports.
  686. * Command completion:                   Command and variable name completion.
  687. * Command history:                      Command history.
  688. * Compatibility with MATLAB:            MATLAB compatibility.
  689. * DASSL:                                Built-in ODE and DAE solvers.
  690. * Data structures:                      Data structures.
  691. * Decrement operators:                  Increment and decrement operators.
  692. * DJGPP:                                Octave for other platforms.
  693. * EMX:                                  Octave for other platforms.
  694. * FAQ for Octave, latest version:       Top.
  695. * Flex:                                 What else do I need?.
  696. * FSF [Free Software Foundation]:       Octave for Unix.
  697. * FSF, contact <gnu@prep.ai.mit.edu>:   Octave for Unix.
  698. * Function name completion:             Command and variable name completion.
  699. * GNU Bison:                            What else do I need?.
  700. * GNU g++:                              What else do I need?.
  701. * GNU gcc:                              What else do I need?.
  702. * GNU Make:                             What else do I need?.
  703. * GNU [GNU's not unix]:                 Octave for Unix.
  704. * GNUware, anonymous FTP sites:         Octave for Unix.
  705. * History:                              Command history.
  706. * Increment operators:                  Increment and decrement operators.
  707. * libg++:                               What else do I need?.
  708. * Logical operators, short-circuit:     Short-circuit boolean operators.
  709. * LSODE:                                Built-in ODE and DAE solvers.
  710. * Mailing lists, bug-octave:            Bug reports.
  711. * Mailing lists, help-octave:           Getting additional help.
  712. * Manual, for Octave:                   Bug reports.
  713. * MS-DOS support:                       Octave for other platforms.
  714. * Name completion:                      Command and variable name completion.
  715. * Octave bug report:                    Bug reports.
  716. * Octave, building:                     Installation.
  717. * Octave, documentation:                Documentation.
  718. * Octave, getting a copy:               Octave for Unix.
  719. * Octave, ordering:                     Octave for Unix.
  720. * Octave, version date:                 latest versions.
  721. * Operators, boolean:                   Short-circuit boolean operators.
  722. * Operators, decrement:                 Increment and decrement operators.
  723. * Operators, increment:                 Increment and decrement operators.
  724. * OS/2 support:                         Octave for other platforms.
  725. * Return lists, variable-length:        Variable-length return lists.
  726. * Short-circuit boolean operators:      Short-circuit boolean operators.
  727. * Source code:                          Getting Octave.
  728. * Structures:                           Data structures.
  729. * Unwind-protect:                       Unwind-protect.
  730. * Variable name completion:             Command and variable name completion.
  731. * Variable-length argument lists:       Variable-length argument lists.
  732. * Variable-length return lists:         Variable-length return lists.
  733. * VAX:                                  Octave for other platforms.
  734. * VMS support:                          Octave for other platforms.
  735.  
  736.  
  737. 
  738. Tag Table:
  739. Node: Top85
  740. Node: What is Octave?1073
  741. Node: Version 1.1.02849
  742. Node: Octave Features3598
  743. Node: Command and variable name completion4052
  744. Node: Command history5115
  745. Node: Data structures5741
  746. Node: Short-circuit boolean operators8166
  747. Node: Increment and decrement operators8588
  748. Node: Unwind-protect9785
  749. Node: Variable-length argument lists10555
  750. Node: Variable-length return lists11831
  751. Node: Built-in ODE and DAE solvers12442
  752. Node: Documentation12781
  753. Node: Getting Octave13927
  754. Node: Octave for Unix14147
  755. Node: Octave for other platforms16296
  756. Node: latest versions16748
  757. Node: Installation16987
  758. Node: What else do I need?17695
  759. Node: Other C++ compilers?18181
  760. Node: Common problems18712
  761. Node: Getting additional help19641
  762. Node: Bug reports20462
  763. Node: MATLAB compatibility21845
  764. Node: Index24732
  765. 
  766. End Tag Table
  767.