Next: , Previous: Informative block closing, Up: Octave Features


5.6 Coherent syntax

Indexing other things than variables is possible, as in:

     octave:1> [3 1 4 1 5 9](3)
     ans = 4
     octave:2> cos([0 pi pi/4 7])(3)
     ans = 0.70711