Mercurial > octave-nkf
comparison doc/interpreter/container.txi @ 14038:b0cdd60db5e5 stable
doc: Grammarcheck documentation ahead of 3.6.0 release.
* basics.txi, container.txi, contrib.txi, debug.txi, expr.txi, func.txi,
install.txi, io.txi, package.txi, polyarea.m, ezcontour.m, ezcontourf.m,
ezmesh.m, ezmeshc.m, ezplot.m, ezplot3.m, ezpolar.m, ezsurf.m, ezsurfc.m,
assert.m, amd.cc, chol.cc, colamd.cc, rand.cc: Grammarcheck documentation.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 12 Dec 2011 21:01:27 -0800 |
parents | 1acb639204d0 |
children | 951eacaf9381 |
comparison
equal
deleted
inserted
replaced
14037:4228c102eca9 | 14038:b0cdd60db5e5 |
---|---|
372 @subsection Creating Structures | 372 @subsection Creating Structures |
373 @cindex dynamic naming | 373 @cindex dynamic naming |
374 | 374 |
375 Besides the index operator ".", Octave can use dynamic naming "(var)" or the | 375 Besides the index operator ".", Octave can use dynamic naming "(var)" or the |
376 @code{struct} function to create structures. Dynamic naming uses the string | 376 @code{struct} function to create structures. Dynamic naming uses the string |
377 value of a variable as the field name. For example, | 377 value of a variable as the field name. For example: |
378 | |
378 @example | 379 @example |
379 @group | 380 @group |
380 a = "field2"; | 381 a = "field2"; |
381 x.a = 1; | 382 x.a = 1; |
382 x.(a) = 2; | 383 x.(a) = 2; |