Octave Notes

Links:

Installation

Debian/Ubuntu install

I simply selected the following packages and hit install:

libinline-octave-perl 0.21-2           Perl5 module to Inline GNU Octave code
octave                2.1.71-2ubuntu2  GNU Octave language for numerical computatio
octave-epstk          2.1-1            GNU Octave encapsulated postscript toolkit
octave-forge          2005.06.13-1     Contributed functions for GNU Octave from ht
octave-gpc            0.1.5-3build1    Octave bindings for the General Polygon Clip
octave-plplot         5.3.1-4ubuntu1   Octave support for PLplot, a plotting librar
octave-sp             2003-2build1     Semidefinite Programming functions for GNU O
octave-statdataml     1.0.9-1build1    GNU Octave package for XML-based data exchan
octave2.1             2.1.71-2ubuntu2  GNU Octave language for numerical computatio
octave2.1-doc         2.1.71-2ubuntu2  PDF documentation on the GNU Octave language
gnuplot               4.0.0-2          A command-line driven interactive plotting p
gnuplot-nox           4.0.0-2          A command-line driven interactive plotting p
gnuplot-x11           4.0.0-2          X11-terminal driver for gnuplot

Fedora Octave Installation

$ yum install octave
...
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 octave                  x86_64     6:2.1.73-1.fc4   extras            6.4 M
 octave-devel            x86_64     6:2.1.73-1.fc4   extras            282 k
 octave-forge            x86_64     2006.03.17-1.fc4  extras            3.1 M
 plplot-octave           x86_64     5.5.3-7.fc4      extras            392 k
Installing for dependencies:
 atlas                   x86_64     3.6.0-9.fc4      extras            3.6 M
 blas                    x86_64     3.0-37.fc4       extras            301 k
 blas-devel              x86_64     3.0-37.fc4       extras            161 k
 cln                     x86_64     1.1.11-1.2.fc4.rf  dries_x86_64      533 k
 fftw                    x86_64     3.1-3.fc4        extras            943 k
 fftw-devel              x86_64     3.1-3.fc4        extras            1.6 M
 ginac                   x86_64     1.3.3-1.fc4      extras            849 k
 gsl                     x86_64     1.6-2            base              751 k
 hdf5                    x86_64     1.6.5-4.fc4      extras            2.6 M
 hdf5-devel              x86_64     1.6.5-4.fc4      extras            1.0 M
 lapack                  x86_64     3.0-37.fc4       extras            3.4 M
 lapack-devel            x86_64     3.0-37.fc4       extras            3.9 M
 plplot                  x86_64     5.5.3-7.fc4      extras            1.5 M
 qhull                   x86_64     2003.1-5.fc4     extras            386 k

Mailing List: help-subscribe@octave.org

Examples

Basic graphing (y=x^2)

octave:1> x=-1:0.1:1;
octave:2> plot(x,x.^2)

Getting Octave from CVS:

export CVS_RSH=ssh; cvs -d :ext:anoncvs@www.octave.org:/cvs checkout octave

Using Octave under Cywgin

Type startx, then work from the new xterm window.

talin@azalin ~
$ startx

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.2.0-4

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

X :0 -multiwindow -clipboard

_XSERVTransmkdir: Cannot create /tmp/.X11-unix with root ownership
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
(==) FontPath set to "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 00000007
winSetEngine - Multi Window or Rootless => ShadowGDI
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 1024 depth: 32
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "00000409" (00000409)
(--) Using preset keyboard for "English (USA)" (409), type "4"
Rules = "xorg" Model = "pc105" Layout = "us" Variant = "(null)" Options = "(null)"
(--) 5 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
winPointerWarpCursor - Discarding first warp: 640 512
winInitMultiWindowWM - pthread_mutex_lock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winInitClipboard ()
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - winInitClipboard returned.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winProcSetSelectionOwner - Clipboard not yet started, aborting.
winProcSetSelectionOwner - Clipboard not yet started, aborting.

waiting for X server to shut down winClipboardProc - Call to select () failed: -1.  Bailing.
winClipboardProc - XDestroyWindow succeeded.
winDeinitMultiWindowWM - Noting shutdown in progress

talin@azalin ~
 
/var/www/sites/dokuwiki/data/pages/projects/devry/octave.txt · Last modified: 2009/04/11 22:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki