octave:octave
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| octave:octave [2008/08/06 16:25] – deva | octave:octave [2009/04/23 13:54] (current) – deva | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| =====Octave syntax and library overview===== | =====Octave syntax and library overview===== | ||
| + | ====Installing packages==== | ||
| + | Fetch the package files from [[http:// | ||
| + | Then create (or add to) the file ~/.octaverc the following content: | ||
| + | <code matlab> | ||
| + | addpath(genpath(' | ||
| + | </ | ||
| + | And run '' | ||
| + | Now the package should be available. | ||
| + | |||
| + | ====plotting==== | ||
| + | <code matlab> | ||
| + | h = [1, | ||
| + | plot(h); | ||
| + | xlabel(" | ||
| + | print(" | ||
| + | </ | ||
| + | This code plots a a vector with a label on the x-axis, and exports it to a pdf file. | ||
| + | |||
| + | <code matlab> | ||
| + | h=wavread(' | ||
| + | hfft=abs(fft(h)); | ||
| + | semilogx(hfft(1: | ||
| + | </ | ||
| + | This code loads an audiofile, and plots its frequency spectrum on a logartihmical scale. | ||
| ====function==== | ====function==== | ||
octave/octave.1218032718.txt.gz · Last modified: by deva
