12.07.2015 Views

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16 <strong>GNU</strong> <strong>Octave</strong>file is provided so that changes to the default <strong>Octave</strong> environment can be madeglobally for all users for a particular version of <strong>Octave</strong>. Some care should betaken when making changes to this file, since all users of <strong>Octave</strong> at your sitewill be affected.~/.octavercThis file is normally used to make personal changes to the default <strong>Octave</strong> environment..octavercThis file can be used to make changes to the default <strong>Octave</strong> environment fora particular project. <strong>Octave</strong> searches for this file in the current directory afterit reads ‘~/.octaverc’. Any use of the cd command in the ‘~/.octaverc’ filewill affect the directory that <strong>Octave</strong> searches for the file ‘.octaverc’.If you start <strong>Octave</strong> in your home directory, commands from from the file‘~/.octaverc’ will only be executed once.A message will be displayed as each of the startup files is read if you invoke <strong>Octave</strong> withthe --verbose option but without the --silent option.Startup files may contain any valid <strong>Octave</strong> commands, including function definitions.2.2 Quitting <strong>Octave</strong>exit (status)Built-in Functionquit (status)Built-in FunctionExit the current <strong>Octave</strong> session. If the optional integer value status is supplied, passthat value to the operating system as the <strong>Octave</strong>’s exit status.atexit (fcn)Register a function to be called when <strong>Octave</strong> exits. For example,function print_fortune ()printf ("\n%s\n", system ("fortune"));fflush (stdout);endfunctionatexit ("print_fortune");will print a message when <strong>Octave</strong> exits.Built-in Function2.3 Commands for Getting HelpThe entire text of this manual is available from the <strong>Octave</strong> prompt via the command help-i. In addition, the documentation for individual user-written functions and variables isalso available via the help command. This section describes the commands used for readingthe manual and the documentation strings for user-supplied functions and variables. SeeSection 13.6 [Function Files], <strong>page</strong> 96, for more information about how to document thefunctions you write.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!