User Tools

Site Tools


octave:octave

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
octave:octave [2008/08/06 16:25] devaoctave:octave [2009/04/23 13:12] deva
Line 1: Line 1:
 =====Octave syntax and library overview===== =====Octave syntax and library overview=====
 +====Installing packages====
 +Fetch the package files from [[http://octave.sourceforge.net/|octaveforge]].
 +Then create (or add to) the file ~/.octaverc the following content:
 +<code matlab>
 +addpath(genpath('~/octave'))
 +</code>
 +And run ''pkg install packagename-1.0.0.tar.gz'' or whatever the package is called from inside octave.
 +Now the package should be available.
 +
 +====plotting====
 +<code matlab>
 +h = [1,2,3,4,5];
 +plot(h);
 +xlabel("some numbers");
 +print("myfile.pdf", "-dpdf");
 +</code>
 +This code plots a a vector with a label on the x-axis, and exports it to a pdf file.
  
 ====function==== ====function====
octave/octave.txt · Last modified: 2009/04/23 13:54 by deva