<html lang="en"> <head> <title>Coherent syntax - Frequently asked questions about Octave (with answers)</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="Frequently asked questions about Octave (with answers)"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Octave-Features.html#Octave-Features" title="Octave Features"> <link rel="prev" href="Informative-block-closing.html#Informative-block-closing" title="Informative block closing"> <link rel="next" href="Exclamation-mark-as-not-operator.html#Exclamation-mark-as-not-operator" title="Exclamation mark as not operator"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <a name="Coherent-syntax"></a> <p> Next: <a rel="next" accesskey="n" href="Exclamation-mark-as-not-operator.html#Exclamation-mark-as-not-operator">Exclamation mark as not operator</a>, Previous: <a rel="previous" accesskey="p" href="Informative-block-closing.html#Informative-block-closing">Informative block closing</a>, Up: <a rel="up" accesskey="u" href="Octave-Features.html#Octave-Features">Octave Features</a> <hr> </div> <h3 class="section">5.6 Coherent syntax</h3> <p>Indexing other things than variables is possible, as in: <pre class="example"> octave:1> [3 1 4 1 5 9](3) ans = 4 octave:2> cos([0 pi pi/4 7])(3) ans = 0.70711 </pre> </body></html>