Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
GNU Octave Beginner's Guide

You're reading from  GNU Octave Beginner's Guide

Product type Book
Published in Jun 2011
Publisher Packt
ISBN-13 9781849513326
Pages 280 pages
Edition 1st Edition
Languages
Author (1):
Jesper Schmidt Hansen Jesper Schmidt Hansen
Profile icon Jesper Schmidt Hansen

Table of Contents (15) Chapters

GNU Octave
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Introducing GNU Octave Interacting with Octave: Variables and Operators Working with Octave: Functions and Plotting Rationalizing: Octave Scripts Extensions: Write Your Own Octave Functions Making Your Own Package: A Poisson Equation Solver More Examples: Data Analysis Need for Speed: Optimization and Dynamically Linked Functions Pop quiz - Answers

Customizing Octave


When the Octave interpreter starts, it reads several configuration files. These files can be changed in order to add system paths, the appearance of the Octave command prompt, how the editor behaves, and much more. The changes can be global and affect all users of Octave that run on a particular computer. They can be targeted to work with a specific version of Octave, a specific project, or a user. This is especially useful on multi-user platforms, such as GNU/Linux.

The configuration files are named either octaverc or .octaverc, depending on where they are located and how the configurations affect Octave. They basically consist of a sequence of Octave commands, so you can also give the same commands to the interpreter from the Octave prompt. This can be a good way to test new configurations before implementing them in your octaverc or .octaverc files.

The names octaverc and .octaverc are, of course, not supported by MATLAB. However, most commands are. It is therefore just a matter of copying the content of the octave configuration files into MATLAB's startup.m file.

Under Windows, the user does not have a home directory equivalent to the home directory under GNU/Linux. I therefore recommend that you create a home directory for Octave. You can then command Octave to go to this directory and look for your configuration file here, whenever you start the interpreter.

If you are using GNU/Linux you can skip the following "Time for action" section.

You have been reading a chapter from
GNU Octave Beginner's Guide
Published in: Jun 2011 Publisher: Packt ISBN-13: 9781849513326
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}