Installing, modifying and using Octave in Windows
Posted on Tuesday, December 31, 2013, 11:35 AM
Install octave
- http://wiki.octave.org/Octave_for_Windows
- Follow all of the instructions for 3.6.4 explicitly!
- It is recommended to install the files here: C:\Octave
Add the folder containing the octave excitable to the path
- Location of octave on my computer: C:\Octave\Octave3.6.4_gcc4.6.2\bin
- Adding to path
- Right click on my computer
- Properties
- Advanced tab
- Environment Variables button
- System variables
- Click on path variable
- Click edit button
- DO NOT DELETE ANY INFORMATION IN THE CURRENT PATH
- Add “;C:\Octave\Octave3.6.4_gcc4.6.2\bin” at the end of the path
- Save
Test octave
- Open cmd window
- Type “octave”
- Octave should run in the cmd window
Basics for .bat file
- Comments
- “rem” is the command used to create comments in a .bat file
- rem this is a comment
- Goto
- Set a location
- :Location1
- Go to it
- @goto Location1
- Display text
- @echo “text to display”
- Turn off displaying automatic text
- @ echo off
- Variables
- SET /P unit="Please Enter Unit: "
- %unit%
Running octive files from .bat
- Open a new file in a text editor and save it as a .bat file
- http://www.gnu.org/software/octave/doc/interpreter/Invoking-Octave-from-the-Command-Line.html
- http://www.gnu.org/software/octave/doc/interpreter/Startup-Files.html
- Setting path in .bat does not work
- octave --exec-path --eval helloworld.m
- Set (or determine) the default octave directory File located here:
- octave-home/share/octave/site/m/startup/octaverc
- Put the file to be run in the default location
- Evaluate the file to be run in the .bat file
- octave --eval helloworld.m
- an error appears but it seems to be of no consequence
- error: can't perform indexing operations for <unknown type> type
Subscribe to:
Post Comments (Atom)
1 Response to "Installing, modifying and using Octave in Windows"
Hey Mike,
Nice step-by-step procedure.
I started using Octave too, but on linux though. In case you did not come across tutorials by Paul Nissenson, here it is http://www.youtube.com/watch?v=MBEDRv3L9Sk.
Chan
Leave A Reply